15 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s --mtriple=loongarch32 -mattr=+d | FileCheck %s3; RUN: llc < %s --mtriple=loongarch64 -mattr=+d | FileCheck %s4 5declare ptr @llvm.thread.pointer()6 7define ptr @thread_pointer() nounwind {8; CHECK-LABEL: thread_pointer:9; CHECK: # %bb.0:10; CHECK-NEXT: move $a0, $tp11; CHECK-NEXT: ret12 %1 = tail call ptr @llvm.thread.pointer()13 ret ptr %114}15