Skip to content

Commit 9d4f7f4

Browse files
committed
[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 /}}'
1 parent 292b300 commit 9d4f7f4

File tree

122 files changed

+239
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+239
-239
lines changed

llvm/test/CodeGen/LoongArch/O0-pipeline.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
;; When EXPENSIVE_CHECKS are enabled, the machine verifier appears between each
22
;; pass. Ignore it with 'grep -v'.
3-
; RUN: llc --mtriple=loongarch32 -O0 --debug-pass=Structure %s -o /dev/null 2>&1 | \
3+
; RUN: llc --mtriple=loongarch32 -mattr=+d -O0 --debug-pass=Structure %s -o /dev/null 2>&1 | \
44
; RUN: grep -v "Verify generated machine code" | FileCheck %s
5-
; RUN: llc --mtriple=loongarch64 -O0 --debug-pass=Structure %s -o /dev/null 2>&1 | \
5+
; RUN: llc --mtriple=loongarch64 -mattr=+d -O0 --debug-pass=Structure %s -o /dev/null 2>&1 | \
66
; RUN: grep -v "Verify generated machine code" | FileCheck %s
77

88
; REQUIRES: asserts

llvm/test/CodeGen/LoongArch/addrspacecast.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32
3-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64
44

55
define void @cast0(ptr addrspace(1) %ptr) {
66
; LA32-LABEL: cast0:

llvm/test/CodeGen/LoongArch/alloca.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \
33
; RUN: | FileCheck %s --check-prefix=LA32
4-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \
55
; RUN: | FileCheck %s --check-prefix=LA64
66

77
declare void @notdead(ptr)

llvm/test/CodeGen/LoongArch/alsl.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32
3-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64
44

55
define i8 @alsl_i8(i8 signext %a, i8 signext %b) nounwind {
66
; LA32-LABEL: alsl_i8:

llvm/test/CodeGen/LoongArch/analyze-branch.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
33

44
;; This test checks that LLVM can do basic stripping and reapplying of branches
55
;; to basic blocks.

llvm/test/CodeGen/LoongArch/andn-icmp.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32
3-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64
44

55
define i1 @andn_icmp_eq_i8(i8 signext %a, i8 signext %b) nounwind {
66
; LA32-LABEL: andn_icmp_eq_i8:

llvm/test/CodeGen/LoongArch/atomicrmw-uinc-udec-wrap.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck --check-prefix=LA64 %s
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck --check-prefix=LA64 %s
33

44
define i8 @atomicrmw_uinc_wrap_i8(ptr %ptr, i8 %val) {
55
; LA64-LABEL: atomicrmw_uinc_wrap_i8:

llvm/test/CodeGen/LoongArch/bitreverse.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \
33
; RUN: | FileCheck %s --check-prefix=LA32
4-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \
55
; RUN: | FileCheck %s --check-prefix=LA64
66

77
declare i7 @llvm.bitreverse.i7(i7)

llvm/test/CodeGen/LoongArch/block-address.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32
3-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64
44

55
@addr = dso_local global ptr null
66

llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s
3-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s
4-
; RUN: llc --mtriple=loongarch32 --no-integrated-as < %s | FileCheck %s
5-
; RUN: llc --mtriple=loongarch64 --no-integrated-as < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
4+
; RUN: llc --mtriple=loongarch32 -mattr=+d --no-integrated-as < %s | FileCheck %s
5+
; RUN: llc --mtriple=loongarch64 -mattr=+d --no-integrated-as < %s | FileCheck %s
66

77
;; This regression test is for ensuring the AsmParser does not use the
88
;; getOrCreateSymbol interface to create blockaddress symbols.

llvm/test/CodeGen/LoongArch/bnez-beqz.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32
3-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64
44

55
declare void @bar()
66

llvm/test/CodeGen/LoongArch/branch-relaxation-spill-32.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --filetype=obj --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --filetype=obj --verify-machineinstrs < %s \
33
; RUN: -o /dev/null 2>&1
4-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s
4+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s
55

66
define void @relax_b28_spill() {
77
; CHECK-LABEL: relax_b28_spill:

llvm/test/CodeGen/LoongArch/branch-relaxation-spill-64.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 --filetype=obj --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d --filetype=obj --verify-machineinstrs < %s \
33
; RUN: -o /dev/null 2>&1
4-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s
55

66
define void @relax_b28_spill() {
77
; CHECK-LABEL: relax_b28_spill:

llvm/test/CodeGen/LoongArch/branch-relaxation.ll

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --filetype=obj --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --filetype=obj --verify-machineinstrs < %s \
33
; RUN: -o /dev/null 2>&1
4-
; RUN: llc --mtriple=loongarch64 --filetype=obj --verify-machineinstrs < %s \
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --filetype=obj --verify-machineinstrs < %s \
55
; RUN: -o /dev/null 2>&1
6-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32
7-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64
6+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32
7+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64
88

99
define i32 @relax_b18(i32 signext %a, i32 signext %b) {
1010
; LA32-LABEL: relax_b18:

llvm/test/CodeGen/LoongArch/bstrins_d.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
33

44
;; Test generation of the bstrins.d instruction.
55
;; There are 8 patterns that can be matched to bstrins.d. See performORCombine

llvm/test/CodeGen/LoongArch/bstrins_w.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s
33

44
;; Test generation of the bstrins.w instruction.
55
;; There are 8 patterns that can be matched to bstrins.w. See performORCombine

llvm/test/CodeGen/LoongArch/bstrpick_d.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
33

44
define i64 @lshr40_and255(i64 %a) {
55
; CHECK-LABEL: lshr40_and255:

llvm/test/CodeGen/LoongArch/bstrpick_w.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s
33

44
define i32 @lshr10_and255(i32 %a) {
55
; CHECK-LABEL: lshr10_and255:

llvm/test/CodeGen/LoongArch/bswap-bitreverse.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \
33
; RUN: | FileCheck %s --check-prefix=LA32
4-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \
55
; RUN: | FileCheck %s --check-prefix=LA64
66

77
declare i16 @llvm.bitreverse.i16(i16)

llvm/test/CodeGen/LoongArch/bswap.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \
33
; RUN: | FileCheck %s --check-prefix=LA32
4-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \
55
; RUN: | FileCheck %s --check-prefix=LA64
66

77
declare i16 @llvm.bswap.i16(i16)

llvm/test/CodeGen/LoongArch/bytepick.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \
33
; RUN: | FileCheck %s --check-prefix=LA32
4-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \
55
; RUN: | FileCheck %s --check-prefix=LA64
66

77
;; a=00112233 b=44556677

llvm/test/CodeGen/LoongArch/code-models.ll

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 --code-model=small < %s | \
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=small < %s | \
33
; RUN: FileCheck --check-prefix=SMALL %s
4-
; RUN: llc --mtriple=loongarch64 --code-model=medium < %s | \
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=medium < %s | \
55
; RUN: FileCheck --check-prefix=MEDIUM %s
6-
; RUN: llc --mtriple=loongarch64 --code-model=large < %s | \
6+
; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large < %s | \
77
; RUN: FileCheck --check-prefix=LARGE %s
88

99
declare void @llvm.memset.p0.i64(ptr, i8, i64, i1)

llvm/test/CodeGen/LoongArch/cpu-name-generic.ll

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --mcpu=generic < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --mcpu=generic < %s \
33
; RUN: | FileCheck %s --check-prefix=LA32
4-
; RUN: llc --mtriple=loongarch32 --mcpu=generic-la32 < %s \
4+
; RUN: llc --mtriple=loongarch32 -mattr=+d --mcpu=generic-la32 < %s \
55
; RUN: | FileCheck %s --check-prefix=LA32
6-
; RUN: llc --mtriple=loongarch64 --mcpu=generic < %s \
6+
; RUN: llc --mtriple=loongarch64 -mattr=+d --mcpu=generic < %s \
77
; RUN: | FileCheck %s --check-prefix=LA64
8-
; RUN: llc --mtriple=loongarch64 --mcpu=generic-la64 < %s \
8+
; RUN: llc --mtriple=loongarch64 -mattr=+d --mcpu=generic-la64 < %s \
99
; RUN: | FileCheck %s --check-prefix=LA64
1010

1111
;; The CPU name "generic" should map to the corresponding concrete names

llvm/test/CodeGen/LoongArch/cpus.ll

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
;; This tests that llc accepts all valid LoongArch CPUs.
22
;; Note the 'generic' names have been tested in cpu-name-generic.ll.
33

4-
; RUN: llc < %s --mtriple=loongarch64 --mcpu=loongarch64 2>&1 | FileCheck %s
5-
; RUN: llc < %s --mtriple=loongarch64 --mcpu=la464 2>&1 | FileCheck %s
6-
; RUN: llc < %s --mtriple=loongarch64 2>&1 | FileCheck %s
4+
; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=loongarch64 2>&1 | FileCheck %s
5+
; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=la464 2>&1 | FileCheck %s
6+
; RUN: llc < %s --mtriple=loongarch64 -mattr=+d 2>&1 | FileCheck %s
77

88
; CHECK-NOT: {{.*}} is not a recognized processor for this target
99

llvm/test/CodeGen/LoongArch/ctlz-cttz-ctpop.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32
3-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64
44

55
declare i8 @llvm.ctlz.i8(i8, i1)
66
declare i16 @llvm.ctlz.i16(i16, i1)

llvm/test/CodeGen/LoongArch/duplicate-returns-for-tailcall.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
33

44
;; Perform tail call optimization for duplicate returns.
55
declare i32 @test()

llvm/test/CodeGen/LoongArch/dwarf-eh.ll

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
; RUN: llc --mtriple=loongarch32 --relocation-model=static < %s | FileCheck %s
2-
; RUN: llc --mtriple=loongarch32 --relocation-model=pic < %s | FileCheck %s
3-
; RUN: llc --mtriple=loongarch64 --relocation-model=static < %s | FileCheck %s
4-
; RUN: llc --mtriple=loongarch64 --relocation-model=pic < %s | FileCheck %s
1+
; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=static < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=pic < %s | FileCheck %s
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=static < %s | FileCheck %s
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=pic < %s | FileCheck %s
55

66
declare void @throw_exception()
77

llvm/test/CodeGen/LoongArch/e_flags.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc --mtriple=loongarch32 --filetype=obj %s -o %t-la32
1+
; RUN: llc --mtriple=loongarch32 -mattr=+d --filetype=obj %s -o %t-la32
22
; RUN: llvm-readelf -h %t-la32 | FileCheck %s --check-prefixes=ILP32,ABI-D --match-full-lines
33

44
; RUN: llc --mtriple=loongarch32 --filetype=obj %s --target-abi=ilp32s -o %t-ilp32s
@@ -10,7 +10,7 @@
1010
; RUN: llc --mtriple=loongarch32 --filetype=obj %s --target-abi=ilp32d -o %t-ilp32d
1111
; RUN: llvm-readelf -h %t-ilp32d | FileCheck %s --check-prefixes=ILP32,ABI-D --match-full-lines
1212

13-
; RUN: llc --mtriple=loongarch64 --filetype=obj %s -o %t-la64
13+
; RUN: llc --mtriple=loongarch64 -mattr=+d --filetype=obj %s -o %t-la64
1414
; RUN: llvm-readelf -h %t-la64 | FileCheck %s --check-prefixes=LP64,ABI-D --match-full-lines
1515

1616
; RUN: llc --mtriple=loongarch64 --filetype=obj %s --target-abi=lp64s -o %t-lp64s

llvm/test/CodeGen/LoongArch/eh-dwarf-cfa.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck --check-prefix=LA32 %s
3-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck --check-prefix=LA64 %s
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck --check-prefix=LA32 %s
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck --check-prefix=LA64 %s
44

55
define void @dwarf() {
66
; LA32-LABEL: dwarf:

llvm/test/CodeGen/LoongArch/emergency-spill-slot.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 -O0 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d -O0 < %s | FileCheck %s
33

44
@var = external global i32
55

llvm/test/CodeGen/LoongArch/exception-pointer-register.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \
33
; RUN: | FileCheck %s --check-prefix=LA32
4-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \
55
; RUN: | FileCheck %s --check-prefix=LA64
66

77
declare void @foo(ptr %p);

llvm/test/CodeGen/LoongArch/expand-call.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
; RUN: llc --mtriple=loongarch64 --stop-before loongarch-prera-expand-pseudo \
1+
; RUN: llc --mtriple=loongarch64 -mattr=+d --stop-before loongarch-prera-expand-pseudo \
22
; RUN: --verify-machineinstrs < %s | FileCheck %s --check-prefix=NOEXPAND
3-
; RUN: llc --mtriple=loongarch64 --stop-before machine-opt-remark-emitter \
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d --stop-before machine-opt-remark-emitter \
44
; RUN: --verify-machineinstrs < %s | FileCheck %s --check-prefix=EXPAND
55

66
declare void @callee()

llvm/test/CodeGen/LoongArch/frame.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
33

44
%struct.key_t = type { i32, [16 x i8] }
55

llvm/test/CodeGen/LoongArch/frameaddr-returnaddr.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32
3-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32
3+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64
44

55
declare ptr @llvm.frameaddress(i32)
66
declare ptr @llvm.returnaddress(i32)

llvm/test/CodeGen/LoongArch/gep-imm.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2-
; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
33

44
define void @test(ptr %sp, ptr %t, i32 %n) {
55
; CHECK-LABEL: test:

llvm/test/CodeGen/LoongArch/get-reg-error-la32.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: not llc < %s --mtriple=loongarch32 2>&1 | FileCheck %s
2+
; RUN: not llc < %s --mtriple=loongarch32 -mattr=+d 2>&1 | FileCheck %s
33

44
define i64 @read_sp() nounwind {
55
entry:

llvm/test/CodeGen/LoongArch/get-reg-error-la64.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: not llc < %s --mtriple=loongarch64 2>&1 | FileCheck %s
2+
; RUN: not llc < %s --mtriple=loongarch64 -mattr=+d 2>&1 | FileCheck %s
33

44
define i32 @read_sp() nounwind {
55
entry:

llvm/test/CodeGen/LoongArch/get-reg.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc < %s --mtriple=loongarch64 | FileCheck %s
2+
; RUN: llc < %s --mtriple=loongarch64 -mattr=+d | FileCheck %s
33

44
define i64 @get_stack() nounwind {
55
; CHECK-LABEL: get_stack:

llvm/test/CodeGen/LoongArch/get-setcc-result-type.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
2+
; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \
33
; RUN: | FileCheck %s
44

55
define void @getSetCCResultType(ptr %p) {

llvm/test/CodeGen/LoongArch/global-address.ll

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --relocation-model=static < %s | FileCheck %s --check-prefix=LA32NOPIC
3-
; RUN: llc --mtriple=loongarch32 --relocation-model=pic < %s | FileCheck %s --check-prefix=LA32PIC
4-
; RUN: llc --mtriple=loongarch64 --relocation-model=static < %s | FileCheck %s --check-prefix=LA64NOPIC
5-
; RUN: llc --mtriple=loongarch64 --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64PIC
6-
; RUN: llc --mtriple=loongarch64 --code-model=large --relocation-model=static < %s | FileCheck %s --check-prefix=LA64LARGENOPIC
7-
; RUN: llc --mtriple=loongarch64 --code-model=large --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64LARGEPIC
2+
; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=static < %s | FileCheck %s --check-prefix=LA32NOPIC
3+
; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=pic < %s | FileCheck %s --check-prefix=LA32PIC
4+
; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=static < %s | FileCheck %s --check-prefix=LA64NOPIC
5+
; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64PIC
6+
; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large --relocation-model=static < %s | FileCheck %s --check-prefix=LA64LARGENOPIC
7+
; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64LARGEPIC
88

99
@g = dso_local global i32 zeroinitializer, align 4
1010
@G = global i32 zeroinitializer, align 4

0 commit comments

Comments
 (0)