13 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=riscv64 | FileCheck %s3; RUN: llc < %s -mtriple=riscv32 | FileCheck %s4 5define ptr @thread_pointer() nounwind {6; CHECK-LABEL: thread_pointer:7; CHECK: # %bb.0:8; CHECK-NEXT: mv a0, tp9; CHECK-NEXT: ret10 %1 = tail call ptr @llvm.thread.pointer()11 ret ptr %112}13