xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/thread-pointer.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc -march=mips < %s | FileCheck %s
2; RUN: llc -march=mips64 < %s | FileCheck %s
3; RUN: llc -march=mipsel < %s | FileCheck %s
4; RUN: llc -march=mips64el < %s | FileCheck %s
5
6declare i8* @llvm.thread.pointer() nounwind readnone
7
8define i8* @thread_pointer() {
9; CHECK: rdhwr $3, $29
10  %1 = tail call i8* @llvm.thread.pointer()
11  ret i8* %1
12}
13