• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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