1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=riscv64 | FileCheck %s
3 ; RUN: llc < %s -mtriple=riscv32 | FileCheck %s
5 declare ptr @llvm.thread.pointer()
7 define ptr @thread_pointer() nounwind {
8 ; CHECK-LABEL: thread_pointer:
10 ; CHECK-NEXT: mv a0, tp
12 %1 = tail call ptr @llvm.thread.pointer()