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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 4 additions & 4 deletions
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.

0 commit comments

Comments
 (0)