llvm-project/llvm/test/CodeGen/Mips/thread-pointer.ll
Fangrui Song ae26f50aea [test] Change llc -march=mips* to -mtriple=mips*
Similar to 806761a7629df268c8aed49657aeccffa6bca449
2024-12-10 22:14:06 -08:00

13 lines
356 B
LLVM

; RUN: llc -mtriple=mips < %s | FileCheck %s
; RUN: llc -mtriple=mips64 < %s | FileCheck %s
; RUN: llc -mtriple=mipsel < %s | FileCheck %s
; RUN: llc -mtriple=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
}