blob: 60bee3d0303194ae04daf4e4cdcddc9e6d424352 [file] [log] [blame]
Marcin Koscielnicki7efdca52016-04-27 17:21:49 +00001; 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}