13 lines
356 B
LLVM
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
|
|
}
|