wanglei 9d4f7f44b6 [test][LoongArch] Add -mattr=+d option. NFC
Because most of tests assume target-abi=`lp64d`, adding the
corresponding feature is reasonable.

rg -l loongarch -g '!*.s' | xargs sed -i '/mtriple=loongarch/ {/-mattr=/!{/target-abi/! s/mtriple=loongarch.. /&-mattr=+d /}}'
2024-05-14 20:23:04 +08:00

15 lines
447 B
LLVM

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