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