1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips64 < %s | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel < %s | FileCheck %s 4*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips64el < %s | FileCheck %s 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdeclare i8* @llvm.thread.pointer() nounwind readnone 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdefine i8* @thread_pointer() { 9*9880d681SAndroid Build Coastguard Worker; CHECK: rdhwr $3, $29 10*9880d681SAndroid Build Coastguard Worker %1 = tail call i8* @llvm.thread.pointer() 11*9880d681SAndroid Build Coastguard Worker ret i8* %1 12*9880d681SAndroid Build Coastguard Worker} 13