1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/CodeGen/Mips/thread-pointer.ll

13 lines
348 B
LLVM
Raw Normal View History

; RUN: llc -march=mips < %s | FileCheck %s
; RUN: llc -march=mips64 < %s | FileCheck %s
; RUN: llc -march=mipsel < %s | FileCheck %s
; RUN: llc -march=mips64el < %s | FileCheck %s
declare i8* @llvm.thread.pointer() nounwind readnone
define i8* @thread_pointer() {
; CHECK: rdhwr $3, $29
%1 = tail call i8* @llvm.thread.pointer()
ret i8* %1
}