You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
413 B
15 lines
413 B
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=riscv64 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=riscv32 | FileCheck %s
|
|
|
|
declare i8* @llvm.thread.pointer()
|
|
|
|
define i8* @thread_pointer() nounwind {
|
|
; CHECK-LABEL: thread_pointer:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: mv a0, tp
|
|
; CHECK-NEXT: ret
|
|
%1 = tail call i8* @llvm.thread.pointer()
|
|
ret i8* %1
|
|
}
|