1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s --check-prefix=CHECK-32 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s --check-prefix=CHECK-64 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s --check-prefix=CHECK-64 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone 6*9880d681SAndroid Build Coastguard Workerdeclare i8* @llvm.thread.pointer() #1 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdefine i8* @thread_pointer() { 9*9880d681SAndroid Build Coastguard Worker; CHECK-32-LABEL: @thread_pointer 10*9880d681SAndroid Build Coastguard Worker; CHECK-32: mr 3, 2 11*9880d681SAndroid Build Coastguard Worker; CHECK-32: blr 12*9880d681SAndroid Build Coastguard Worker; CHECK-64-LABEL: @thread_pointer 13*9880d681SAndroid Build Coastguard Worker; CHECK-64: mr 3, 13 14*9880d681SAndroid Build Coastguard Worker; CHECK-64: blr 15*9880d681SAndroid Build Coastguard Worker %1 = tail call i8* @llvm.thread.pointer() 16*9880d681SAndroid Build Coastguard Worker ret i8* %1 17*9880d681SAndroid Build Coastguard Worker} 18