bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Mips/thread-pointer.ll

13 lines
348 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; 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 ptr @llvm.thread.pointer() nounwind readnone
define ptr @thread_pointer() {
; CHECK: rdhwr $3, $29
%1 = tail call ptr @llvm.thread.pointer()
ret ptr %1
}