diff --git a/llvm/test/CodeGen/LoongArch/O0-pipeline.ll b/llvm/test/CodeGen/LoongArch/O0-pipeline.ll index 84d235d78eb9e..38c3291b63677 100644 --- a/llvm/test/CodeGen/LoongArch/O0-pipeline.ll +++ b/llvm/test/CodeGen/LoongArch/O0-pipeline.ll @@ -1,8 +1,8 @@ ;; When EXPENSIVE_CHECKS are enabled, the machine verifier appears between each ;; pass. Ignore it with 'grep -v'. -; RUN: llc --mtriple=loongarch32 -O0 --debug-pass=Structure %s -o /dev/null 2>&1 | \ +; RUN: llc --mtriple=loongarch32 -mattr=+d -O0 --debug-pass=Structure %s -o /dev/null 2>&1 | \ ; RUN: grep -v "Verify generated machine code" | FileCheck %s -; RUN: llc --mtriple=loongarch64 -O0 --debug-pass=Structure %s -o /dev/null 2>&1 | \ +; RUN: llc --mtriple=loongarch64 -mattr=+d -O0 --debug-pass=Structure %s -o /dev/null 2>&1 | \ ; RUN: grep -v "Verify generated machine code" | FileCheck %s ; REQUIRES: asserts diff --git a/llvm/test/CodeGen/LoongArch/addrspacecast.ll b/llvm/test/CodeGen/LoongArch/addrspacecast.ll index 7875562331be0..1ca41705f9741 100644 --- a/llvm/test/CodeGen/LoongArch/addrspacecast.ll +++ b/llvm/test/CodeGen/LoongArch/addrspacecast.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64 define void @cast0(ptr addrspace(1) %ptr) { ; LA32-LABEL: cast0: diff --git a/llvm/test/CodeGen/LoongArch/alloca.ll b/llvm/test/CodeGen/LoongArch/alloca.ll index 75a05689e4178..d298beaaa766c 100644 --- a/llvm/test/CodeGen/LoongArch/alloca.ll +++ b/llvm/test/CodeGen/LoongArch/alloca.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 declare void @notdead(ptr) diff --git a/llvm/test/CodeGen/LoongArch/alsl.ll b/llvm/test/CodeGen/LoongArch/alsl.ll index 177e37de0952d..6db9a179d65d5 100644 --- a/llvm/test/CodeGen/LoongArch/alsl.ll +++ b/llvm/test/CodeGen/LoongArch/alsl.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define i8 @alsl_i8(i8 signext %a, i8 signext %b) nounwind { ; LA32-LABEL: alsl_i8: diff --git a/llvm/test/CodeGen/LoongArch/analyze-branch.ll b/llvm/test/CodeGen/LoongArch/analyze-branch.ll index fb89964af838e..d15229a8c9e18 100644 --- a/llvm/test/CodeGen/LoongArch/analyze-branch.ll +++ b/llvm/test/CodeGen/LoongArch/analyze-branch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s ;; This test checks that LLVM can do basic stripping and reapplying of branches ;; to basic blocks. diff --git a/llvm/test/CodeGen/LoongArch/andn-icmp.ll b/llvm/test/CodeGen/LoongArch/andn-icmp.ll index ff6935e2e23cc..46bae6a9b70c8 100644 --- a/llvm/test/CodeGen/LoongArch/andn-icmp.ll +++ b/llvm/test/CodeGen/LoongArch/andn-icmp.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define i1 @andn_icmp_eq_i8(i8 signext %a, i8 signext %b) nounwind { ; LA32-LABEL: andn_icmp_eq_i8: diff --git a/llvm/test/CodeGen/LoongArch/atomicrmw-uinc-udec-wrap.ll b/llvm/test/CodeGen/LoongArch/atomicrmw-uinc-udec-wrap.ll index b95c2e24737a5..5ca6d86991358 100644 --- a/llvm/test/CodeGen/LoongArch/atomicrmw-uinc-udec-wrap.ll +++ b/llvm/test/CodeGen/LoongArch/atomicrmw-uinc-udec-wrap.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck --check-prefix=LA64 %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck --check-prefix=LA64 %s define i8 @atomicrmw_uinc_wrap_i8(ptr %ptr, i8 %val) { ; LA64-LABEL: atomicrmw_uinc_wrap_i8: diff --git a/llvm/test/CodeGen/LoongArch/bitreverse.ll b/llvm/test/CodeGen/LoongArch/bitreverse.ll index fcf523aa3c883..78d5c7e4a7977 100644 --- a/llvm/test/CodeGen/LoongArch/bitreverse.ll +++ b/llvm/test/CodeGen/LoongArch/bitreverse.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 declare i7 @llvm.bitreverse.i7(i7) diff --git a/llvm/test/CodeGen/LoongArch/block-address.ll b/llvm/test/CodeGen/LoongArch/block-address.ll index 63d310dd9beab..eaba81f3563d7 100644 --- a/llvm/test/CodeGen/LoongArch/block-address.ll +++ b/llvm/test/CodeGen/LoongArch/block-address.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 @addr = dso_local global ptr null diff --git a/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll b/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll index d07092230a4da..88864087ee4b7 100644 --- a/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll +++ b/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll @@ -1,8 +1,8 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s -; RUN: llc --mtriple=loongarch32 --no-integrated-as < %s | FileCheck %s -; RUN: llc --mtriple=loongarch64 --no-integrated-as < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d --no-integrated-as < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d --no-integrated-as < %s | FileCheck %s ;; This regression test is for ensuring the AsmParser does not use the ;; getOrCreateSymbol interface to create blockaddress symbols. diff --git a/llvm/test/CodeGen/LoongArch/bnez-beqz.ll b/llvm/test/CodeGen/LoongArch/bnez-beqz.ll index d1652c73c25eb..b2d7f3fe41733 100644 --- a/llvm/test/CodeGen/LoongArch/bnez-beqz.ll +++ b/llvm/test/CodeGen/LoongArch/bnez-beqz.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 declare void @bar() diff --git a/llvm/test/CodeGen/LoongArch/branch-relaxation-spill-32.ll b/llvm/test/CodeGen/LoongArch/branch-relaxation-spill-32.ll index 1ed9386310eba..5c96d5c416b9c 100644 --- a/llvm/test/CodeGen/LoongArch/branch-relaxation-spill-32.ll +++ b/llvm/test/CodeGen/LoongArch/branch-relaxation-spill-32.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --filetype=obj --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --filetype=obj --verify-machineinstrs < %s \ ; RUN: -o /dev/null 2>&1 -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s define void @relax_b28_spill() { ; CHECK-LABEL: relax_b28_spill: diff --git a/llvm/test/CodeGen/LoongArch/branch-relaxation-spill-64.ll b/llvm/test/CodeGen/LoongArch/branch-relaxation-spill-64.ll index 1c4ef48a97618..a161fe97da9b0 100644 --- a/llvm/test/CodeGen/LoongArch/branch-relaxation-spill-64.ll +++ b/llvm/test/CodeGen/LoongArch/branch-relaxation-spill-64.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 --filetype=obj --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --filetype=obj --verify-machineinstrs < %s \ ; RUN: -o /dev/null 2>&1 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s define void @relax_b28_spill() { ; CHECK-LABEL: relax_b28_spill: diff --git a/llvm/test/CodeGen/LoongArch/branch-relaxation.ll b/llvm/test/CodeGen/LoongArch/branch-relaxation.ll index 296f543e18d97..6037ef9337dc5 100644 --- a/llvm/test/CodeGen/LoongArch/branch-relaxation.ll +++ b/llvm/test/CodeGen/LoongArch/branch-relaxation.ll @@ -1,10 +1,10 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --filetype=obj --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --filetype=obj --verify-machineinstrs < %s \ ; RUN: -o /dev/null 2>&1 -; RUN: llc --mtriple=loongarch64 --filetype=obj --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --filetype=obj --verify-machineinstrs < %s \ ; RUN: -o /dev/null 2>&1 -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64 define i32 @relax_b18(i32 signext %a, i32 signext %b) { ; LA32-LABEL: relax_b18: diff --git a/llvm/test/CodeGen/LoongArch/bstrins_d.ll b/llvm/test/CodeGen/LoongArch/bstrins_d.ll index fe1f6270f966d..ba43b63af6d67 100644 --- a/llvm/test/CodeGen/LoongArch/bstrins_d.ll +++ b/llvm/test/CodeGen/LoongArch/bstrins_d.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s ;; Test generation of the bstrins.d instruction. ;; There are 8 patterns that can be matched to bstrins.d. See performORCombine diff --git a/llvm/test/CodeGen/LoongArch/bstrins_w.ll b/llvm/test/CodeGen/LoongArch/bstrins_w.ll index e008caacad2a1..92b98df215644 100644 --- a/llvm/test/CodeGen/LoongArch/bstrins_w.ll +++ b/llvm/test/CodeGen/LoongArch/bstrins_w.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s ;; Test generation of the bstrins.w instruction. ;; There are 8 patterns that can be matched to bstrins.w. See performORCombine diff --git a/llvm/test/CodeGen/LoongArch/bstrpick_d.ll b/llvm/test/CodeGen/LoongArch/bstrpick_d.ll index e93c1391d463f..e6fc385b610dd 100644 --- a/llvm/test/CodeGen/LoongArch/bstrpick_d.ll +++ b/llvm/test/CodeGen/LoongArch/bstrpick_d.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s define i64 @lshr40_and255(i64 %a) { ; CHECK-LABEL: lshr40_and255: diff --git a/llvm/test/CodeGen/LoongArch/bstrpick_w.ll b/llvm/test/CodeGen/LoongArch/bstrpick_w.ll index f9027e1fb32df..8d5c9d0df44c0 100644 --- a/llvm/test/CodeGen/LoongArch/bstrpick_w.ll +++ b/llvm/test/CodeGen/LoongArch/bstrpick_w.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s define i32 @lshr10_and255(i32 %a) { ; CHECK-LABEL: lshr10_and255: diff --git a/llvm/test/CodeGen/LoongArch/bswap-bitreverse.ll b/llvm/test/CodeGen/LoongArch/bswap-bitreverse.ll index 828fb933bf3c8..c8f9596b9b0c1 100644 --- a/llvm/test/CodeGen/LoongArch/bswap-bitreverse.ll +++ b/llvm/test/CodeGen/LoongArch/bswap-bitreverse.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 declare i16 @llvm.bitreverse.i16(i16) diff --git a/llvm/test/CodeGen/LoongArch/bswap.ll b/llvm/test/CodeGen/LoongArch/bswap.ll index 71095ab972e35..122dab7fb4963 100644 --- a/llvm/test/CodeGen/LoongArch/bswap.ll +++ b/llvm/test/CodeGen/LoongArch/bswap.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 declare i16 @llvm.bswap.i16(i16) diff --git a/llvm/test/CodeGen/LoongArch/bytepick.ll b/llvm/test/CodeGen/LoongArch/bytepick.ll index 1a2cd48448ba2..22a78bcd56119 100644 --- a/llvm/test/CodeGen/LoongArch/bytepick.ll +++ b/llvm/test/CodeGen/LoongArch/bytepick.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 ;; a=00112233 b=44556677 diff --git a/llvm/test/CodeGen/LoongArch/code-models.ll b/llvm/test/CodeGen/LoongArch/code-models.ll index f93c316709284..4b2b72afaee17 100644 --- a/llvm/test/CodeGen/LoongArch/code-models.ll +++ b/llvm/test/CodeGen/LoongArch/code-models.ll @@ -1,9 +1,9 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 --code-model=small < %s | \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=small < %s | \ ; RUN: FileCheck --check-prefix=SMALL %s -; RUN: llc --mtriple=loongarch64 --code-model=medium < %s | \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=medium < %s | \ ; RUN: FileCheck --check-prefix=MEDIUM %s -; RUN: llc --mtriple=loongarch64 --code-model=large < %s | \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large < %s | \ ; RUN: FileCheck --check-prefix=LARGE %s declare void @llvm.memset.p0.i64(ptr, i8, i64, i1) diff --git a/llvm/test/CodeGen/LoongArch/cpu-name-generic.ll b/llvm/test/CodeGen/LoongArch/cpu-name-generic.ll index 1129d9fcb2542..7472c1cc4f57d 100644 --- a/llvm/test/CodeGen/LoongArch/cpu-name-generic.ll +++ b/llvm/test/CodeGen/LoongArch/cpu-name-generic.ll @@ -1,11 +1,11 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --mcpu=generic < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --mcpu=generic < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch32 --mcpu=generic-la32 < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --mcpu=generic-la32 < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --mcpu=generic < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --mcpu=generic < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 -; RUN: llc --mtriple=loongarch64 --mcpu=generic-la64 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --mcpu=generic-la64 < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 ;; The CPU name "generic" should map to the corresponding concrete names diff --git a/llvm/test/CodeGen/LoongArch/cpus.ll b/llvm/test/CodeGen/LoongArch/cpus.ll index 35945ae4de71f..41ff1be496e3b 100644 --- a/llvm/test/CodeGen/LoongArch/cpus.ll +++ b/llvm/test/CodeGen/LoongArch/cpus.ll @@ -1,9 +1,9 @@ ;; This tests that llc accepts all valid LoongArch CPUs. ;; Note the 'generic' names have been tested in cpu-name-generic.ll. -; RUN: llc < %s --mtriple=loongarch64 --mcpu=loongarch64 2>&1 | FileCheck %s -; RUN: llc < %s --mtriple=loongarch64 --mcpu=la464 2>&1 | FileCheck %s -; RUN: llc < %s --mtriple=loongarch64 2>&1 | FileCheck %s +; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=loongarch64 2>&1 | FileCheck %s +; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=la464 2>&1 | FileCheck %s +; RUN: llc < %s --mtriple=loongarch64 -mattr=+d 2>&1 | FileCheck %s ; CHECK-NOT: {{.*}} is not a recognized processor for this target diff --git a/llvm/test/CodeGen/LoongArch/ctlz-cttz-ctpop.ll b/llvm/test/CodeGen/LoongArch/ctlz-cttz-ctpop.ll index 9fa3f5076bb22..f17cec231f323 100644 --- a/llvm/test/CodeGen/LoongArch/ctlz-cttz-ctpop.ll +++ b/llvm/test/CodeGen/LoongArch/ctlz-cttz-ctpop.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 declare i8 @llvm.ctlz.i8(i8, i1) declare i16 @llvm.ctlz.i16(i16, i1) diff --git a/llvm/test/CodeGen/LoongArch/duplicate-returns-for-tailcall.ll b/llvm/test/CodeGen/LoongArch/duplicate-returns-for-tailcall.ll index 80e55ef9e21f4..ac9d885c7ce08 100644 --- a/llvm/test/CodeGen/LoongArch/duplicate-returns-for-tailcall.ll +++ b/llvm/test/CodeGen/LoongArch/duplicate-returns-for-tailcall.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s ;; Perform tail call optimization for duplicate returns. declare i32 @test() diff --git a/llvm/test/CodeGen/LoongArch/dwarf-eh.ll b/llvm/test/CodeGen/LoongArch/dwarf-eh.ll index f4e347e07de54..cdeb6d81711d5 100644 --- a/llvm/test/CodeGen/LoongArch/dwarf-eh.ll +++ b/llvm/test/CodeGen/LoongArch/dwarf-eh.ll @@ -1,7 +1,7 @@ -; RUN: llc --mtriple=loongarch32 --relocation-model=static < %s | FileCheck %s -; RUN: llc --mtriple=loongarch32 --relocation-model=pic < %s | FileCheck %s -; RUN: llc --mtriple=loongarch64 --relocation-model=static < %s | FileCheck %s -; RUN: llc --mtriple=loongarch64 --relocation-model=pic < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=static < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=pic < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=static < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=pic < %s | FileCheck %s declare void @throw_exception() diff --git a/llvm/test/CodeGen/LoongArch/e_flags.ll b/llvm/test/CodeGen/LoongArch/e_flags.ll index c004d1f9cdf4d..25f3285bdf328 100644 --- a/llvm/test/CodeGen/LoongArch/e_flags.ll +++ b/llvm/test/CodeGen/LoongArch/e_flags.ll @@ -1,4 +1,4 @@ -; RUN: llc --mtriple=loongarch32 --filetype=obj %s -o %t-la32 +; RUN: llc --mtriple=loongarch32 -mattr=+d --filetype=obj %s -o %t-la32 ; RUN: llvm-readelf -h %t-la32 | FileCheck %s --check-prefixes=ILP32,ABI-D --match-full-lines ; RUN: llc --mtriple=loongarch32 --filetype=obj %s --target-abi=ilp32s -o %t-ilp32s @@ -10,7 +10,7 @@ ; RUN: llc --mtriple=loongarch32 --filetype=obj %s --target-abi=ilp32d -o %t-ilp32d ; RUN: llvm-readelf -h %t-ilp32d | FileCheck %s --check-prefixes=ILP32,ABI-D --match-full-lines -; RUN: llc --mtriple=loongarch64 --filetype=obj %s -o %t-la64 +; RUN: llc --mtriple=loongarch64 -mattr=+d --filetype=obj %s -o %t-la64 ; RUN: llvm-readelf -h %t-la64 | FileCheck %s --check-prefixes=LP64,ABI-D --match-full-lines ; RUN: llc --mtriple=loongarch64 --filetype=obj %s --target-abi=lp64s -o %t-lp64s diff --git a/llvm/test/CodeGen/LoongArch/eh-dwarf-cfa.ll b/llvm/test/CodeGen/LoongArch/eh-dwarf-cfa.ll index 796ada3a1a024..f00cf9491c089 100644 --- a/llvm/test/CodeGen/LoongArch/eh-dwarf-cfa.ll +++ b/llvm/test/CodeGen/LoongArch/eh-dwarf-cfa.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck --check-prefix=LA32 %s -; RUN: llc --mtriple=loongarch64 < %s | FileCheck --check-prefix=LA64 %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck --check-prefix=LA32 %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck --check-prefix=LA64 %s define void @dwarf() { ; LA32-LABEL: dwarf: diff --git a/llvm/test/CodeGen/LoongArch/emergency-spill-slot.ll b/llvm/test/CodeGen/LoongArch/emergency-spill-slot.ll index 4565c63f08d99..ccc5c703e71ed 100644 --- a/llvm/test/CodeGen/LoongArch/emergency-spill-slot.ll +++ b/llvm/test/CodeGen/LoongArch/emergency-spill-slot.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 -O0 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d -O0 < %s | FileCheck %s @var = external global i32 diff --git a/llvm/test/CodeGen/LoongArch/exception-pointer-register.ll b/llvm/test/CodeGen/LoongArch/exception-pointer-register.ll index 797c7e520f5bb..530d97ff4bab9 100644 --- a/llvm/test/CodeGen/LoongArch/exception-pointer-register.ll +++ b/llvm/test/CodeGen/LoongArch/exception-pointer-register.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 declare void @foo(ptr %p); diff --git a/llvm/test/CodeGen/LoongArch/expand-call.ll b/llvm/test/CodeGen/LoongArch/expand-call.ll index e0d179f92de68..8c21adbcbb55c 100644 --- a/llvm/test/CodeGen/LoongArch/expand-call.ll +++ b/llvm/test/CodeGen/LoongArch/expand-call.ll @@ -1,6 +1,6 @@ -; RUN: llc --mtriple=loongarch64 --stop-before loongarch-prera-expand-pseudo \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --stop-before loongarch-prera-expand-pseudo \ ; RUN: --verify-machineinstrs < %s | FileCheck %s --check-prefix=NOEXPAND -; RUN: llc --mtriple=loongarch64 --stop-before machine-opt-remark-emitter \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --stop-before machine-opt-remark-emitter \ ; RUN: --verify-machineinstrs < %s | FileCheck %s --check-prefix=EXPAND declare void @callee() diff --git a/llvm/test/CodeGen/LoongArch/frame.ll b/llvm/test/CodeGen/LoongArch/frame.ll index 8d3133316c43d..ac5cb3c7e7211 100644 --- a/llvm/test/CodeGen/LoongArch/frame.ll +++ b/llvm/test/CodeGen/LoongArch/frame.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s %struct.key_t = type { i32, [16 x i8] } diff --git a/llvm/test/CodeGen/LoongArch/frameaddr-returnaddr.ll b/llvm/test/CodeGen/LoongArch/frameaddr-returnaddr.ll index 01c9173c2e982..128d6e5a1dac7 100644 --- a/llvm/test/CodeGen/LoongArch/frameaddr-returnaddr.ll +++ b/llvm/test/CodeGen/LoongArch/frameaddr-returnaddr.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 declare ptr @llvm.frameaddress(i32) declare ptr @llvm.returnaddress(i32) diff --git a/llvm/test/CodeGen/LoongArch/gep-imm.ll b/llvm/test/CodeGen/LoongArch/gep-imm.ll index c88d0b5a4543f..567d3ea43ac91 100644 --- a/llvm/test/CodeGen/LoongArch/gep-imm.ll +++ b/llvm/test/CodeGen/LoongArch/gep-imm.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s define void @test(ptr %sp, ptr %t, i32 %n) { ; CHECK-LABEL: test: diff --git a/llvm/test/CodeGen/LoongArch/get-reg-error-la32.ll b/llvm/test/CodeGen/LoongArch/get-reg-error-la32.ll index 7440bfe5c85a5..58b533a8b4e2b 100644 --- a/llvm/test/CodeGen/LoongArch/get-reg-error-la32.ll +++ b/llvm/test/CodeGen/LoongArch/get-reg-error-la32.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: not llc < %s --mtriple=loongarch32 2>&1 | FileCheck %s +; RUN: not llc < %s --mtriple=loongarch32 -mattr=+d 2>&1 | FileCheck %s define i64 @read_sp() nounwind { entry: diff --git a/llvm/test/CodeGen/LoongArch/get-reg-error-la64.ll b/llvm/test/CodeGen/LoongArch/get-reg-error-la64.ll index 9312aa9020ba9..ba2e834203277 100644 --- a/llvm/test/CodeGen/LoongArch/get-reg-error-la64.ll +++ b/llvm/test/CodeGen/LoongArch/get-reg-error-la64.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: not llc < %s --mtriple=loongarch64 2>&1 | FileCheck %s +; RUN: not llc < %s --mtriple=loongarch64 -mattr=+d 2>&1 | FileCheck %s define i32 @read_sp() nounwind { entry: diff --git a/llvm/test/CodeGen/LoongArch/get-reg.ll b/llvm/test/CodeGen/LoongArch/get-reg.ll index 323030da9e7f3..e6d1de3baeb79 100644 --- a/llvm/test/CodeGen/LoongArch/get-reg.ll +++ b/llvm/test/CodeGen/LoongArch/get-reg.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc < %s --mtriple=loongarch64 | FileCheck %s +; RUN: llc < %s --mtriple=loongarch64 -mattr=+d | FileCheck %s define i64 @get_stack() nounwind { ; CHECK-LABEL: get_stack: diff --git a/llvm/test/CodeGen/LoongArch/get-setcc-result-type.ll b/llvm/test/CodeGen/LoongArch/get-setcc-result-type.ll index 5e4c8418b222b..6cf9d7d75b996 100644 --- a/llvm/test/CodeGen/LoongArch/get-setcc-result-type.ll +++ b/llvm/test/CodeGen/LoongArch/get-setcc-result-type.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s define void @getSetCCResultType(ptr %p) { diff --git a/llvm/test/CodeGen/LoongArch/global-address.ll b/llvm/test/CodeGen/LoongArch/global-address.ll index d32a17f488b14..0c8958b6ab336 100644 --- a/llvm/test/CodeGen/LoongArch/global-address.ll +++ b/llvm/test/CodeGen/LoongArch/global-address.ll @@ -1,10 +1,10 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --relocation-model=static < %s | FileCheck %s --check-prefix=LA32NOPIC -; RUN: llc --mtriple=loongarch32 --relocation-model=pic < %s | FileCheck %s --check-prefix=LA32PIC -; RUN: llc --mtriple=loongarch64 --relocation-model=static < %s | FileCheck %s --check-prefix=LA64NOPIC -; RUN: llc --mtriple=loongarch64 --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64PIC -; RUN: llc --mtriple=loongarch64 --code-model=large --relocation-model=static < %s | FileCheck %s --check-prefix=LA64LARGENOPIC -; RUN: llc --mtriple=loongarch64 --code-model=large --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64LARGEPIC +; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=static < %s | FileCheck %s --check-prefix=LA32NOPIC +; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=pic < %s | FileCheck %s --check-prefix=LA32PIC +; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=static < %s | FileCheck %s --check-prefix=LA64NOPIC +; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64PIC +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large --relocation-model=static < %s | FileCheck %s --check-prefix=LA64LARGENOPIC +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64LARGEPIC @g = dso_local global i32 zeroinitializer, align 4 @G = global i32 zeroinitializer, align 4 diff --git a/llvm/test/CodeGen/LoongArch/global-variable-code-model.ll b/llvm/test/CodeGen/LoongArch/global-variable-code-model.ll index aa4780834ac3e..277b0b9061398 100644 --- a/llvm/test/CodeGen/LoongArch/global-variable-code-model.ll +++ b/llvm/test/CodeGen/LoongArch/global-variable-code-model.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s @a= external dso_local global i32, code_model "small", align 4 diff --git a/llvm/test/CodeGen/LoongArch/imm.ll b/llvm/test/CodeGen/LoongArch/imm.ll index f8b7a61d60973..f84fddaec66b9 100644 --- a/llvm/test/CodeGen/LoongArch/imm.ll +++ b/llvm/test/CodeGen/LoongArch/imm.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s define i64 @imm0() { ; CHECK-LABEL: imm0: diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZB.ll b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZB.ll index 1a8f50abb6588..526fd95da83fa 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZB.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZB.ll @@ -1,6 +1,6 @@ -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=ASM -; RUN: llc --mtriple=loongarch64 --print-after-isel -o /dev/null 2>&1 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --print-after-isel -o /dev/null 2>&1 < %s \ ; RUN: | FileCheck %s --check-prefix=MACHINE-INSTR ;; Note amswap.w is not available on loongarch32. diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZC.ll b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZC.ll index 9c053c4d24857..435235abed1ae 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZC.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZC.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64 define i32 @ZC_offset_neg_32769(ptr %p) nounwind { ; LA32-LABEL: ZC_offset_neg_32769: diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-k.ll b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-k.ll index 5ffe4b48c3f54..dccf2957981ce 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-k.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-k.ll @@ -1,6 +1,6 @@ -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=ASM -; RUN: llc --mtriple=loongarch64 --print-after-isel -o /dev/null 2>&1 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --print-after-isel -o /dev/null 2>&1 < %s \ ; RUN: | FileCheck %s --check-prefix=MACHINE-INSTR define i64 @k_variable_offset(ptr %p, i64 %idx) nounwind { diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-m.ll b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-m.ll index b6d8893d8ac97..281d52c47b685 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-m.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-m.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s --check-prefix=LA64 define i32 @m_offset_neg_2049(ptr %p) nounwind { ; LA32-LABEL: m_offset_neg_2049: diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-constraint.ll b/llvm/test/CodeGen/LoongArch/inline-asm-constraint.ll index 6ad52756b6662..4bcc88be97396 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-constraint.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-constraint.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs --no-integrated-as < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs --no-integrated-as < %s \ ; RUN: | FileCheck %s -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs --no-integrated-as < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs --no-integrated-as < %s \ ; RUN: | FileCheck %s @gi = external dso_local global i32, align 4 diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-operand-modifiers.ll b/llvm/test/CodeGen/LoongArch/inline-asm-operand-modifiers.ll index d3cf288bfd010..33651446c69fb 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-operand-modifiers.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-operand-modifiers.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s define i32 @modifier_z_zero(i32 %a) nounwind { ; CHECK-LABEL: modifier_z_zero: diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-reg-names-error.ll b/llvm/test/CodeGen/LoongArch/inline-asm-reg-names-error.ll index 56c335ffb3a60..c6c0ac61607ab 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-reg-names-error.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-reg-names-error.ll @@ -1,5 +1,5 @@ -; RUN: not llc --mtriple=loongarch32 2>&1 < %s | FileCheck %s -; RUN: not llc --mtriple=loongarch64 2>&1 < %s | FileCheck %s +; RUN: not llc --mtriple=loongarch32 -mattr=+d 2>&1 < %s | FileCheck %s +; RUN: not llc --mtriple=loongarch64 -mattr=+d 2>&1 < %s | FileCheck %s define i32 @non_exit_r32(i32 %a) nounwind { ; CHECK: error: couldn't allocate input reg for constraint '{$r32}' diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-reg-names.ll b/llvm/test/CodeGen/LoongArch/inline-asm-reg-names.ll index 4bc16e6cc5fbb..36ccc1bb0163f 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-reg-names.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-reg-names.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck --check-prefix=LA32 %s -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck --check-prefix=LA64 %s ;; These test that we can use architectural names ($r*) refer to registers in diff --git a/llvm/test/CodeGen/LoongArch/intrinsic-csr-side-effects.ll b/llvm/test/CodeGen/LoongArch/intrinsic-csr-side-effects.ll index e3e23e46b04b9..d14483939fbd1 100644 --- a/llvm/test/CodeGen/LoongArch/intrinsic-csr-side-effects.ll +++ b/llvm/test/CodeGen/LoongArch/intrinsic-csr-side-effects.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s declare i32 @llvm.loongarch.csrrd.w(i32 immarg) nounwind declare i32 @llvm.loongarch.csrwr.w(i32, i32 immarg) nounwind diff --git a/llvm/test/CodeGen/LoongArch/intrinsic-iocsr-side-effects.ll b/llvm/test/CodeGen/LoongArch/intrinsic-iocsr-side-effects.ll index ad78f7f53be12..e2a1f8a7ccd09 100644 --- a/llvm/test/CodeGen/LoongArch/intrinsic-iocsr-side-effects.ll +++ b/llvm/test/CodeGen/LoongArch/intrinsic-iocsr-side-effects.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s declare i32 @llvm.loongarch.iocsrrd.b(i32) nounwind declare void @llvm.loongarch.iocsrwr.b(i32, i32) nounwind diff --git a/llvm/test/CodeGen/LoongArch/intrinsic-la32-error.ll b/llvm/test/CodeGen/LoongArch/intrinsic-la32-error.ll index 5302ba558940c..bdbdaec8a1a07 100644 --- a/llvm/test/CodeGen/LoongArch/intrinsic-la32-error.ll +++ b/llvm/test/CodeGen/LoongArch/intrinsic-la32-error.ll @@ -1,4 +1,4 @@ -; RUN: not llc --mtriple=loongarch32 < %s 2>&1 | FileCheck %s +; RUN: not llc --mtriple=loongarch32 -mattr=+d < %s 2>&1 | FileCheck %s declare void @llvm.loongarch.cacop.w(i32, i32, i32) declare i32 @llvm.loongarch.crc.w.b.w(i32, i32) diff --git a/llvm/test/CodeGen/LoongArch/intrinsic-la32.ll b/llvm/test/CodeGen/LoongArch/intrinsic-la32.ll index 37e0902625a2c..56f5146bb9854 100644 --- a/llvm/test/CodeGen/LoongArch/intrinsic-la32.ll +++ b/llvm/test/CodeGen/LoongArch/intrinsic-la32.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s declare void @llvm.loongarch.cacop.w(i32, i32, i32) diff --git a/llvm/test/CodeGen/LoongArch/intrinsic-la64-error.ll b/llvm/test/CodeGen/LoongArch/intrinsic-la64-error.ll index 4716d401d9fdf..0a24e03838fdb 100644 --- a/llvm/test/CodeGen/LoongArch/intrinsic-la64-error.ll +++ b/llvm/test/CodeGen/LoongArch/intrinsic-la64-error.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: not llc --mtriple=loongarch64 < %s 2>&1 | FileCheck %s +; RUN: not llc --mtriple=loongarch64 -mattr=+d < %s 2>&1 | FileCheck %s declare void @llvm.loongarch.cacop.w(i32, i32, i32) declare void @llvm.loongarch.cacop.d(i64, i64, i64) diff --git a/llvm/test/CodeGen/LoongArch/intrinsic-la64.ll b/llvm/test/CodeGen/LoongArch/intrinsic-la64.ll index f0ebd8508ad14..4a59e2af533e7 100644 --- a/llvm/test/CodeGen/LoongArch/intrinsic-la64.ll +++ b/llvm/test/CodeGen/LoongArch/intrinsic-la64.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s declare void @llvm.loongarch.cacop.d(i64, i64, i64) declare i32 @llvm.loongarch.crc.w.b.w(i32, i32) diff --git a/llvm/test/CodeGen/LoongArch/intrinsic-memcpy.ll b/llvm/test/CodeGen/LoongArch/intrinsic-memcpy.ll index 06ef4d2f6c151..622001db32955 100644 --- a/llvm/test/CodeGen/LoongArch/intrinsic-memcpy.ll +++ b/llvm/test/CodeGen/LoongArch/intrinsic-memcpy.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s %Box = type [6 x i64] diff --git a/llvm/test/CodeGen/LoongArch/intrinsic-not-constant-error.ll b/llvm/test/CodeGen/LoongArch/intrinsic-not-constant-error.ll index 9cb89670c293d..9c6eb678588ac 100644 --- a/llvm/test/CodeGen/LoongArch/intrinsic-not-constant-error.ll +++ b/llvm/test/CodeGen/LoongArch/intrinsic-not-constant-error.ll @@ -1,5 +1,5 @@ -; RUN: not llc --mtriple=loongarch32 < %s 2>&1 | FileCheck %s -; RUN: not llc --mtriple=loongarch64 < %s 2>&1 | FileCheck %s +; RUN: not llc --mtriple=loongarch32 -mattr=+d < %s 2>&1 | FileCheck %s +; RUN: not llc --mtriple=loongarch64 -mattr=+d < %s 2>&1 | FileCheck %s declare void @llvm.loongarch.dbar(i32) declare void @llvm.loongarch.ibar(i32) diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/add.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/add.ll index 709e0faeff90e..c10d4949438fb 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/add.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/add.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'add' LLVM IR: https://llvm.org/docs/LangRef.html#add-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/and.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/and.ll index b3e32cc5c00c6..730d2609e64d6 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/and.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/and.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'and' LLVM IR: https://llvm.org/docs/LangRef.html#and-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/ashr.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/ashr.ll index d4f766d460d10..6d04372d9222f 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/ashr.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/ashr.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'ashr' LLVM IR: https://llvm.org/docs/LangRef.html#ashr-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/atomic-cmpxchg.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/atomic-cmpxchg.ll index 495974a59ba67..ad98397dfe8f0 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/atomic-cmpxchg.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/atomic-cmpxchg.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define void @cmpxchg_i8_acquire_acquire(ptr %ptr, i8 %cmp, i8 %val) nounwind { ; LA64-LABEL: cmpxchg_i8_acquire_acquire: diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw-minmax.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw-minmax.ll index 794242f45fdb8..2bd29c2670a68 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw-minmax.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw-minmax.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | \ ; RUN: FileCheck %s --check-prefix=LA64 ;; TODO: Testing for LA32 architecture will be added later diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll index 9b83b4c9535ee..f2f459ecaa2ec 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define i8 @atomicrmw_xchg_i8_acquire(ptr %a, i8 %b) nounwind { ; LA32-LABEL: atomicrmw_xchg_i8_acquire: diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/br.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/br.ll index 36e39cc6d8480..02375a925723d 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/br.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/br.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefixes=ALL,LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefixes=ALL,LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefixes=ALL,LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefixes=ALL,LA64 define void @foo() noreturn nounwind { ; ALL-LABEL: foo: diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/call.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/call.ll index 90ee9490de74e..697f7f79aa00c 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/call.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/call.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck --check-prefix=LA32 %s -; RUN: llc --mtriple=loongarch64 < %s | FileCheck --check-prefix=LA64 %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck --check-prefix=LA32 %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck --check-prefix=LA64 %s declare i32 @external_function(i32) diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/fence-singlethread.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/fence-singlethread.ll index a8b164a4cd3cf..cd62f4b1be683 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/fence-singlethread.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/fence-singlethread.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define void @fence_singlethread() { ; LA32-LABEL: fence_singlethread: diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/fence.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/fence.ll index c5b2232f9b803..717c5d0dc41b5 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/fence.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/fence.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define void @fence_acquire() nounwind { ; LA32-LABEL: fence_acquire: diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/icmp.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/icmp.ll index 605b3ab293787..fabfbc3beeda5 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/icmp.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/icmp.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'icmp' LLVM IR: https://llvm.org/docs/LangRef.html#icmp-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/indirectbr.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/indirectbr.ll index cd60183a0933b..8a8fb5056609e 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/indirectbr.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/indirectbr.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s define i32 @indirectbr(ptr %target) nounwind { ; CHECK-LABEL: indirectbr: diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/load-store-atomic.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/load-store-atomic.ll index 8b170c479eed6..c51fded410e83 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/load-store-atomic.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/load-store-atomic.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define i8 @load_acquire_i8(ptr %ptr) { ; LA32-LABEL: load_acquire_i8: diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/lshr.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/lshr.ll index 7b28872780e82..ce7d1ec93d9d7 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/lshr.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/lshr.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'lshr' LLVM IR: https://llvm.org/docs/LangRef.html#lshr-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll index cfa6ceae78f95..58cc0e7d6484a 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'mul' LLVM IR: https://llvm.org/docs/LangRef.html#mul-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/or.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/or.ll index ead72507d751a..7dacd3f6105de 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/or.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/or.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'or' LLVM IR: https://llvm.org/docs/LangRef.html#or-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/sdiv-udiv-srem-urem.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/sdiv-udiv-srem-urem.ll index 9c94bfeeadc06..381f69bb46f8f 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/sdiv-udiv-srem-urem.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/sdiv-udiv-srem-urem.ll @@ -1,9 +1,9 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 -; RUN: llc --mtriple=loongarch32 -loongarch-check-zero-division < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d -loongarch-check-zero-division < %s \ ; RUN: | FileCheck %s --check-prefix=LA32-TRAP -; RUN: llc --mtriple=loongarch64 -loongarch-check-zero-division < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d -loongarch-check-zero-division < %s \ ; RUN: | FileCheck %s --check-prefix=LA64-TRAP ;; Test the sdiv/udiv/srem/urem LLVM IR. diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/select-bare-int.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/select-bare-int.ll index ad0a241f5fd38..7239e27d99445 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/select-bare-int.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/select-bare-int.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the bare integers 'select' LLVM IR: https://llvm.org/docs/LangRef.html#select-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/select-icc-int.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/select-icc-int.ll index 0acf31f8bb1ab..6a2e1f6972ad9 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/select-icc-int.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/select-icc-int.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Test integers selection after integers comparison diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/sext-zext-trunc.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/sext-zext-trunc.ll index 7053d53408961..255bb79ad1580 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/sext-zext-trunc.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/sext-zext-trunc.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Test sext/zext/trunc diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/shl.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/shl.ll index 3f35b76b16034..2be777cc8db01 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/shl.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/shl.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'shl' LLVM IR: https://llvm.org/docs/LangRef.html#shl-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/sub.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/sub.ll index bb236c11bb811..a593a66441b70 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/sub.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/sub.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'sub' LLVM IR: https://llvm.org/docs/LangRef.html#sub-instruction diff --git a/llvm/test/CodeGen/LoongArch/ir-instruction/xor.ll b/llvm/test/CodeGen/LoongArch/ir-instruction/xor.ll index 373c9cf4b64e9..703b812e8bcd5 100644 --- a/llvm/test/CodeGen/LoongArch/ir-instruction/xor.ll +++ b/llvm/test/CodeGen/LoongArch/ir-instruction/xor.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Exercise the 'xor' LLVM IR: https://llvm.org/docs/LangRef.html#xor-instruction diff --git a/llvm/test/CodeGen/LoongArch/jump-table.ll b/llvm/test/CodeGen/LoongArch/jump-table.ll index 0cd6ef02d8da2..bb3d49157ac6a 100644 --- a/llvm/test/CodeGen/LoongArch/jump-table.ll +++ b/llvm/test/CodeGen/LoongArch/jump-table.ll @@ -1,11 +1,11 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --min-jump-table-entries=5 < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --min-jump-table-entries=5 < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --min-jump-table-entries=5 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --min-jump-table-entries=5 < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 -; RUN: llc --mtriple=loongarch32 --min-jump-table-entries=4 < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --min-jump-table-entries=4 < %s \ ; RUN: | FileCheck %s --check-prefix=LA32-JT -; RUN: llc --mtriple=loongarch64 --min-jump-table-entries=4 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --min-jump-table-entries=4 < %s \ ; RUN: | FileCheck %s --check-prefix=LA64-JT ;; The default mininum number of entries to use a jump table is 4. diff --git a/llvm/test/CodeGen/LoongArch/ldptr.ll b/llvm/test/CodeGen/LoongArch/ldptr.ll index c7c2374d5fd58..c3656a6bdafba 100644 --- a/llvm/test/CodeGen/LoongArch/ldptr.ll +++ b/llvm/test/CodeGen/LoongArch/ldptr.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Check that ldptr.w is not emitted for small offsets. define signext i32 @ldptr_w_too_small_offset(ptr %p) nounwind { diff --git a/llvm/test/CodeGen/LoongArch/ldx-stx-sp-2.ll b/llvm/test/CodeGen/LoongArch/ldx-stx-sp-2.ll index be125f25ab2be..b5c9d1e7ff0f9 100644 --- a/llvm/test/CodeGen/LoongArch/ldx-stx-sp-2.ll +++ b/llvm/test/CodeGen/LoongArch/ldx-stx-sp-2.ll @@ -1,5 +1,5 @@ -; RUN: llc --mtriple=loongarch32 < %s -; RUN: llc --mtriple=loongarch64 < %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s ;; This should not crash the code generator. diff --git a/llvm/test/CodeGen/LoongArch/ldx-stx-sp-3.ll b/llvm/test/CodeGen/LoongArch/ldx-stx-sp-3.ll index 45d2450bd64c1..2bf9961b0af5b 100644 --- a/llvm/test/CodeGen/LoongArch/ldx-stx-sp-3.ll +++ b/llvm/test/CodeGen/LoongArch/ldx-stx-sp-3.ll @@ -1,5 +1,5 @@ -; RUN: llc --mtriple=loongarch32 < %s -; RUN: llc --mtriple=loongarch64 < %s +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s ;; This should not crash the code generator. diff --git a/llvm/test/CodeGen/LoongArch/legalicmpimm.ll b/llvm/test/CodeGen/LoongArch/legalicmpimm.ll index 3dc8785631dc2..71faf232640d2 100644 --- a/llvm/test/CodeGen/LoongArch/legalicmpimm.ll +++ b/llvm/test/CodeGen/LoongArch/legalicmpimm.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define i32 @icmpimm(i32 %x) { ; LA32-LABEL: icmpimm: diff --git a/llvm/test/CodeGen/LoongArch/load-store-offset.ll b/llvm/test/CodeGen/LoongArch/load-store-offset.ll index 68777dfe0c2a2..b83d5dc67dd44 100644 --- a/llvm/test/CodeGen/LoongArch/load-store-offset.ll +++ b/llvm/test/CodeGen/LoongArch/load-store-offset.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define i8 @load_i8() nounwind { ; LA32-LABEL: load_i8: diff --git a/llvm/test/CodeGen/LoongArch/memcmp.ll b/llvm/test/CodeGen/LoongArch/memcmp.ll index 4d4f376cd5385..d8e322b3afe4e 100644 --- a/llvm/test/CodeGen/LoongArch/memcmp.ll +++ b/llvm/test/CodeGen/LoongArch/memcmp.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s ;; Before getSelectionDAGInfo() interface hooks were defined DAGBuilder ;; would crash. diff --git a/llvm/test/CodeGen/LoongArch/mir-target-flags.ll b/llvm/test/CodeGen/LoongArch/mir-target-flags.ll index 9f3a061fe7244..f530e3ef237c1 100644 --- a/llvm/test/CodeGen/LoongArch/mir-target-flags.ll +++ b/llvm/test/CodeGen/LoongArch/mir-target-flags.ll @@ -1,6 +1,6 @@ -; RUN: llc --mtriple=loongarch64 --stop-after loongarch-prera-expand-pseudo \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --stop-after loongarch-prera-expand-pseudo \ ; RUN: --relocation-model=pic %s -o %t.mir -; RUN: llc --mtriple=loongarch64 --run-pass loongarch-prera-expand-pseudo \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --run-pass loongarch-prera-expand-pseudo \ ; RUN: %t.mir -o - | FileCheck %s ;; This tests the LoongArch-specific serialization and deserialization of diff --git a/llvm/test/CodeGen/LoongArch/nomerge.ll b/llvm/test/CodeGen/LoongArch/nomerge.ll index a8d5116f6b67d..d35d3186b031e 100644 --- a/llvm/test/CodeGen/LoongArch/nomerge.ll +++ b/llvm/test/CodeGen/LoongArch/nomerge.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s define void @foo(i32 %i) nounwind { ; CHECK-LABEL: foo: diff --git a/llvm/test/CodeGen/LoongArch/not.ll b/llvm/test/CodeGen/LoongArch/not.ll index b9e02bdf111d9..05ece715e1c4b 100644 --- a/llvm/test/CodeGen/LoongArch/not.ll +++ b/llvm/test/CodeGen/LoongArch/not.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define i8 @nor_i8(i8 %a, i8 %b) nounwind { ; LA32-LABEL: nor_i8: diff --git a/llvm/test/CodeGen/LoongArch/numeric-reg-names.ll b/llvm/test/CodeGen/LoongArch/numeric-reg-names.ll index 153a697a55b9a..10a97a1778df0 100644 --- a/llvm/test/CodeGen/LoongArch/numeric-reg-names.ll +++ b/llvm/test/CodeGen/LoongArch/numeric-reg-names.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --loongarch-numeric-reg < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --loongarch-numeric-reg < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --loongarch-numeric-reg < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --loongarch-numeric-reg < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 @.str_1 = internal constant [7 x i8] c"hello\0A\00" diff --git a/llvm/test/CodeGen/LoongArch/opt-pipeline.ll b/llvm/test/CodeGen/LoongArch/opt-pipeline.ll index 803985fde215d..f976dd8f98686 100644 --- a/llvm/test/CodeGen/LoongArch/opt-pipeline.ll +++ b/llvm/test/CodeGen/LoongArch/opt-pipeline.ll @@ -1,16 +1,16 @@ ;; When EXPENSIVE_CHECKS are enabled, the machine verifier appears between each ;; pass. Ignore it with 'grep -v'. -; RUN: llc --mtriple=loongarch32 -O1 --debug-pass=Structure %s -o /dev/null 2>&1 | \ +; RUN: llc --mtriple=loongarch32 -mattr=+d -O1 --debug-pass=Structure %s -o /dev/null 2>&1 | \ ; RUN: grep -v "Verify generated machine code" | FileCheck %s --check-prefix=LAXX -; RUN: llc --mtriple=loongarch32 -O2 --debug-pass=Structure %s -o /dev/null 2>&1 | \ +; RUN: llc --mtriple=loongarch32 -mattr=+d -O2 --debug-pass=Structure %s -o /dev/null 2>&1 | \ ; RUN: grep -v "Verify generated machine code" | FileCheck %s --check-prefix=LAXX -; RUN: llc --mtriple=loongarch32 -O3 --debug-pass=Structure %s -o /dev/null 2>&1 | \ +; RUN: llc --mtriple=loongarch32 -mattr=+d -O3 --debug-pass=Structure %s -o /dev/null 2>&1 | \ ; RUN: grep -v "Verify generated machine code" | FileCheck %s --check-prefix=LAXX -; RUN: llc --mtriple=loongarch64 -O1 --debug-pass=Structure %s -o /dev/null 2>&1 | \ +; RUN: llc --mtriple=loongarch64 -mattr=+d -O1 --debug-pass=Structure %s -o /dev/null 2>&1 | \ ; RUN: grep -v "Verify generated machine code" | FileCheck %s --check-prefixes=LAXX,LA64 -; RUN: llc --mtriple=loongarch64 -O2 --debug-pass=Structure %s -o /dev/null 2>&1 | \ +; RUN: llc --mtriple=loongarch64 -mattr=+d -O2 --debug-pass=Structure %s -o /dev/null 2>&1 | \ ; RUN: grep -v "Verify generated machine code" | FileCheck %s --check-prefixes=LAXX,LA64 -; RUN: llc --mtriple=loongarch64 -O3 --debug-pass=Structure %s -o /dev/null 2>&1 | \ +; RUN: llc --mtriple=loongarch64 -mattr=+d -O3 --debug-pass=Structure %s -o /dev/null 2>&1 | \ ; RUN: grep -v "Verify generated machine code" | FileCheck %s --check-prefixes=LAXX,LA64 ; REQUIRES: asserts diff --git a/llvm/test/CodeGen/LoongArch/patchable-function-entry.ll b/llvm/test/CodeGen/LoongArch/patchable-function-entry.ll index 2e390d1e2c33a..fdb9288c2bd7d 100644 --- a/llvm/test/CodeGen/LoongArch/patchable-function-entry.ll +++ b/llvm/test/CodeGen/LoongArch/patchable-function-entry.ll @@ -1,7 +1,7 @@ ;; Test the function attribute "patchable-function-entry". ;; Adapted from the RISCV test case. -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefixes=CHECK,LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefixes=CHECK,LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefixes=CHECK,LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefixes=CHECK,LA64 define void @f0() "patchable-function-entry"="0" { ; CHECK-LABEL: f0: diff --git a/llvm/test/CodeGen/LoongArch/prefer-w-inst.ll b/llvm/test/CodeGen/LoongArch/prefer-w-inst.ll index 385f27f04d5f6..8a7c7183a75c9 100644 --- a/llvm/test/CodeGen/LoongArch/prefer-w-inst.ll +++ b/llvm/test/CodeGen/LoongArch/prefer-w-inst.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck --check-prefixes=NO-PREFER-W-INST %s -; RUN: llc --mtriple=loongarch64 --loongarch-disable-cvt-to-d-suffix --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --loongarch-disable-cvt-to-d-suffix --verify-machineinstrs < %s \ ; RUN: | FileCheck --check-prefixes=NO-CVT-D-INST %s ; RUN: llc --mtriple=loongarch64 --mattr=+prefer-w-inst --verify-machineinstrs < %s \ ; RUN: | FileCheck --check-prefixes=PREFER-W-INST %s diff --git a/llvm/test/CodeGen/LoongArch/preferred-alignments.ll b/llvm/test/CodeGen/LoongArch/preferred-alignments.ll index 30305127b94fa..c3618db646016 100644 --- a/llvm/test/CodeGen/LoongArch/preferred-alignments.ll +++ b/llvm/test/CodeGen/LoongArch/preferred-alignments.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck --check-prefix=LA464 %s -; RUN: llc --mtriple=loongarch64 --mcpu=la464 < %s | FileCheck --check-prefix=LA464 %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck --check-prefix=LA464 %s +; RUN: llc --mtriple=loongarch64 -mattr=+d --mcpu=la464 < %s | FileCheck --check-prefix=LA464 %s define signext i32 @sum(ptr noalias nocapture noundef readonly %0, i32 noundef signext %1) { ; LA464-LABEL: sum: diff --git a/llvm/test/CodeGen/LoongArch/psabi-restricted-scheduling.ll b/llvm/test/CodeGen/LoongArch/psabi-restricted-scheduling.ll index d6f3e3469f751..0effd469e3fb7 100644 --- a/llvm/test/CodeGen/LoongArch/psabi-restricted-scheduling.ll +++ b/llvm/test/CodeGen/LoongArch/psabi-restricted-scheduling.ll @@ -1,11 +1,11 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4 -; RUN: llc --mtriple=loongarch64 --code-model=medium --post-RA-scheduler=0 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=medium --post-RA-scheduler=0 < %s \ ; RUN: | FileCheck %s --check-prefix=MEDIUM_NO_SCH -; RUN: llc --mtriple=loongarch64 --code-model=medium --post-RA-scheduler=1 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=medium --post-RA-scheduler=1 < %s \ ; RUN: | FileCheck %s --check-prefix=MEDIUM_SCH -; RUN: llc --mtriple=loongarch64 --code-model=large --post-RA-scheduler=0 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large --post-RA-scheduler=0 < %s \ ; RUN: | FileCheck %s --check-prefix=LARGE_NO_SCH -; RUN: llc --mtriple=loongarch64 --code-model=large --post-RA-scheduler=1 < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large --post-RA-scheduler=1 < %s \ ; RUN: | FileCheck %s --check-prefix=LARGE_SCH ;; FIXME: According to the description of the psABI v2.30, the code sequences diff --git a/llvm/test/CodeGen/LoongArch/register-coalescer-crash-pr79718.mir b/llvm/test/CodeGen/LoongArch/register-coalescer-crash-pr79718.mir index b3c44affb7859..9c62983c6d450 100644 --- a/llvm/test/CodeGen/LoongArch/register-coalescer-crash-pr79718.mir +++ b/llvm/test/CodeGen/LoongArch/register-coalescer-crash-pr79718.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4 -# RUN: llc -o - %s -mtriple=loongarch64 \ +# RUN: llc -o - %s -mtriple=loongarch64 -mattr=+d \ # RUN: -run-pass=register-coalescer -join-liveintervals=1 -join-splitedges=0 | FileCheck %s --- diff --git a/llvm/test/CodeGen/LoongArch/returnaddr-error.ll b/llvm/test/CodeGen/LoongArch/returnaddr-error.ll index 6ac1e0afcd5c0..efb23e0c2fa4c 100644 --- a/llvm/test/CodeGen/LoongArch/returnaddr-error.ll +++ b/llvm/test/CodeGen/LoongArch/returnaddr-error.ll @@ -1,4 +1,4 @@ -; RUN: not llc --mtriple=loongarch64 < %s 2>&1 | FileCheck %s +; RUN: not llc --mtriple=loongarch64 -mattr=+d < %s 2>&1 | FileCheck %s declare ptr @llvm.returnaddress(i32 immarg) diff --git a/llvm/test/CodeGen/LoongArch/rotl-rotr.ll b/llvm/test/CodeGen/LoongArch/rotl-rotr.ll index b9fbd962e6bbf..b2d46f5c088ba 100644 --- a/llvm/test/CodeGen/LoongArch/rotl-rotr.ll +++ b/llvm/test/CodeGen/LoongArch/rotl-rotr.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define signext i32 @rotl_32(i32 signext %x, i32 signext %y) nounwind { ; LA32-LABEL: rotl_32: diff --git a/llvm/test/CodeGen/LoongArch/select-const.ll b/llvm/test/CodeGen/LoongArch/select-const.ll index 6a61cb66ef999..e9506b3a83592 100644 --- a/llvm/test/CodeGen/LoongArch/select-const.ll +++ b/llvm/test/CodeGen/LoongArch/select-const.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define signext i32 @select_const_int_one_away(i1 zeroext %a) nounwind { ; LA32-LABEL: select_const_int_one_away: diff --git a/llvm/test/CodeGen/LoongArch/select-to-shiftand.ll b/llvm/test/CodeGen/LoongArch/select-to-shiftand.ll index fa8879ea69dda..a40e31c5d303d 100644 --- a/llvm/test/CodeGen/LoongArch/select-to-shiftand.ll +++ b/llvm/test/CodeGen/LoongArch/select-to-shiftand.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Compare if positive and select variable or zero. define i8 @pos_sel_variable_and_zero_i8(i8 signext %a, i8 signext %b) { diff --git a/llvm/test/CodeGen/LoongArch/sext-cheaper-than-zext.ll b/llvm/test/CodeGen/LoongArch/sext-cheaper-than-zext.ll index c363948a14940..fafd9ef092da4 100644 --- a/llvm/test/CodeGen/LoongArch/sext-cheaper-than-zext.ll +++ b/llvm/test/CodeGen/LoongArch/sext-cheaper-than-zext.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s define signext i32 @sext_icmp(i32 signext %x, i32 signext %y) { ; CHECK-LABEL: sext_icmp: diff --git a/llvm/test/CodeGen/LoongArch/shift-masked-shamt.ll b/llvm/test/CodeGen/LoongArch/shift-masked-shamt.ll index 3494329e3e7c6..4909a5f7098da 100644 --- a/llvm/test/CodeGen/LoongArch/shift-masked-shamt.ll +++ b/llvm/test/CodeGen/LoongArch/shift-masked-shamt.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; This test checks that unnecessary masking of shift amount operands is ;; eliminated during instruction selection. The test needs to ensure that the diff --git a/llvm/test/CodeGen/LoongArch/shrinkwrap.ll b/llvm/test/CodeGen/LoongArch/shrinkwrap.ll index 0323b56080f83..8e5ec17d61241 100644 --- a/llvm/test/CodeGen/LoongArch/shrinkwrap.ll +++ b/llvm/test/CodeGen/LoongArch/shrinkwrap.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 -O0 < %s | FileCheck %s --check-prefix=NOSHRINKW -; RUN: llc --mtriple=loongarch64 -O2 < %s | FileCheck %s --check-prefix=SHRINKW +; RUN: llc --mtriple=loongarch64 -mattr=+d -O0 < %s | FileCheck %s --check-prefix=NOSHRINKW +; RUN: llc --mtriple=loongarch64 -mattr=+d -O2 < %s | FileCheck %s --check-prefix=SHRINKW declare void @abort() diff --git a/llvm/test/CodeGen/LoongArch/smul-with-overflow.ll b/llvm/test/CodeGen/LoongArch/smul-with-overflow.ll index 0efb5fd4e640b..739680e6141dc 100644 --- a/llvm/test/CodeGen/LoongArch/smul-with-overflow.ll +++ b/llvm/test/CodeGen/LoongArch/smul-with-overflow.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 define zeroext i1 @smuloi64(i64 %v1, i64 %v2, ptr %res) { ; LA32-LABEL: smuloi64: diff --git a/llvm/test/CodeGen/LoongArch/spill-ra-without-kill.ll b/llvm/test/CodeGen/LoongArch/spill-ra-without-kill.ll index 7a52697d15297..08534e307e4e0 100644 --- a/llvm/test/CodeGen/LoongArch/spill-ra-without-kill.ll +++ b/llvm/test/CodeGen/LoongArch/spill-ra-without-kill.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -O0 --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s +; RUN: llc -O0 --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s ;; This test case is reduced from pr17377.c of the GCC C Torture Suite using ;; bugpoint. diff --git a/llvm/test/CodeGen/LoongArch/split-sp-adjust.ll b/llvm/test/CodeGen/LoongArch/split-sp-adjust.ll index 8217336637da2..0605ceedf3e2b 100644 --- a/llvm/test/CodeGen/LoongArch/split-sp-adjust.ll +++ b/llvm/test/CodeGen/LoongArch/split-sp-adjust.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s ;; The stack size is 2048 and the SP adjustment will be split. diff --git a/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll b/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll index 497ac065a8c3f..1246b8bfa1105 100644 --- a/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll +++ b/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 declare void @callee(ptr, ptr) diff --git a/llvm/test/CodeGen/LoongArch/stack-realignment.ll b/llvm/test/CodeGen/LoongArch/stack-realignment.ll index ac1397a9370de..43e61adb2bdc9 100644 --- a/llvm/test/CodeGen/LoongArch/stack-realignment.ll +++ b/llvm/test/CodeGen/LoongArch/stack-realignment.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 declare void @callee(ptr) diff --git a/llvm/test/CodeGen/LoongArch/stptr.ll b/llvm/test/CodeGen/LoongArch/stptr.ll index cc198f9c2f8cc..d70f9f4ba1603 100644 --- a/llvm/test/CodeGen/LoongArch/stptr.ll +++ b/llvm/test/CodeGen/LoongArch/stptr.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32 +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64 ;; Check that stptr.w is not emitted for small offsets. define void @stptr_w_too_small_offset(ptr %p, i32 signext %val) nounwind { diff --git a/llvm/test/CodeGen/LoongArch/tail-calls.ll b/llvm/test/CodeGen/LoongArch/tail-calls.ll index c22a65c77e702..8298d76d8e3a6 100644 --- a/llvm/test/CodeGen/LoongArch/tail-calls.ll +++ b/llvm/test/CodeGen/LoongArch/tail-calls.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s ;; Perform tail call optimization for global address. declare i32 @callee_tail(i32 %i) diff --git a/llvm/test/CodeGen/LoongArch/test_bl_fixupkind.mir b/llvm/test/CodeGen/LoongArch/test_bl_fixupkind.mir index 70cd5fb8d7eb6..7511193f1359a 100644 --- a/llvm/test/CodeGen/LoongArch/test_bl_fixupkind.mir +++ b/llvm/test/CodeGen/LoongArch/test_bl_fixupkind.mir @@ -1,4 +1,4 @@ -# RUN: llc --mtriple=loongarch64 --filetype=obj %s -o - | \ +# RUN: llc --mtriple=loongarch64 -mattr=+d --filetype=obj %s -o - | \ # RUN: llvm-objdump -d - | FileCheck %s # REQUIRES: asserts diff --git a/llvm/test/CodeGen/LoongArch/thread-pointer.ll b/llvm/test/CodeGen/LoongArch/thread-pointer.ll index 805709e61c541..438f07e146650 100644 --- a/llvm/test/CodeGen/LoongArch/thread-pointer.ll +++ b/llvm/test/CodeGen/LoongArch/thread-pointer.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc < %s --mtriple=loongarch32 | FileCheck %s -; RUN: llc < %s --mtriple=loongarch64 | FileCheck %s +; RUN: llc < %s --mtriple=loongarch32 -mattr=+d | FileCheck %s +; RUN: llc < %s --mtriple=loongarch64 -mattr=+d | FileCheck %s declare ptr @llvm.thread.pointer() diff --git a/llvm/test/CodeGen/LoongArch/tls-models.ll b/llvm/test/CodeGen/LoongArch/tls-models.ll index 6b250ec021624..bb89794d1c843 100644 --- a/llvm/test/CodeGen/LoongArch/tls-models.ll +++ b/llvm/test/CodeGen/LoongArch/tls-models.ll @@ -1,15 +1,15 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --relocation-model=pic < %s | FileCheck %s --check-prefix=LA32PIC -; RUN: llc --mtriple=loongarch64 --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64PIC -; RUN: llc --mtriple=loongarch64 --code-model=large --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64LARGEPIC -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32NOPIC -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64NOPIC -; RUN: llc --mtriple=loongarch64 --code-model=large < %s | FileCheck %s --check-prefix=LA64LARGENOPIC -; RUN: llc --mtriple=loongarch32 --relocation-model=pic --enable-tlsdesc < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=pic < %s | FileCheck %s --check-prefix=LA32PIC +; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64PIC +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large --relocation-model=pic < %s | FileCheck %s --check-prefix=LA64LARGEPIC +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32NOPIC +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64NOPIC +; RUN: llc --mtriple=loongarch64 -mattr=+d --code-model=large < %s | FileCheck %s --check-prefix=LA64LARGENOPIC +; RUN: llc --mtriple=loongarch32 -mattr=+d --relocation-model=pic --enable-tlsdesc < %s \ ; RUN: | FileCheck %s --check-prefix=LA32DESC -; RUN: llc --mtriple=loongarch64 --relocation-model=pic --enable-tlsdesc < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=pic --enable-tlsdesc < %s \ ; RUN: | FileCheck %s --check-prefix=LA64DESC -; RUN: llc --mtriple=loongarch64 --relocation-model=pic --enable-tlsdesc \ +; RUN: llc --mtriple=loongarch64 -mattr=+d --relocation-model=pic --enable-tlsdesc \ ; RUN: --code-model=large < %s | FileCheck %s --check-prefix=DESC64 ;; Check that TLS symbols are lowered correctly based on the specified diff --git a/llvm/test/CodeGen/LoongArch/trap.ll b/llvm/test/CodeGen/LoongArch/trap.ll index 718b99160b201..15a7ad82bd7a8 100644 --- a/llvm/test/CodeGen/LoongArch/trap.ll +++ b/llvm/test/CodeGen/LoongArch/trap.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s -; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s +; RUN: llc --mtriple=loongarch32 -mattr=+d --verify-machineinstrs < %s | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s ;; Verify that we lower @llvm.trap() and @llvm.debugtrap() correctly. diff --git a/llvm/test/CodeGen/LoongArch/unaligned-access.ll b/llvm/test/CodeGen/LoongArch/unaligned-access.ll index dd5b585fcca50..1eadbad65aa77 100644 --- a/llvm/test/CodeGen/LoongArch/unaligned-access.ll +++ b/llvm/test/CodeGen/LoongArch/unaligned-access.ll @@ -2,11 +2,11 @@ ;; Test the ual feature which is similar to AArch64/arm64-strict-align.ll. -; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA32-ALIGNED +; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA32-ALIGNED ; RUN: llc --mtriple=loongarch32 --mattr=+ual < %s | FileCheck %s --check-prefix=LA32-UNALIGNED ; RUN: llc --mtriple=loongarch32 --mattr=-ual < %s | FileCheck %s --check-prefix=LA32-ALIGNED -; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA64-UNALIGNED +; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA64-UNALIGNED ; RUN: llc --mtriple=loongarch64 --mattr=+ual < %s | FileCheck %s --check-prefix=LA64-UNALIGNED ; RUN: llc --mtriple=loongarch64 --mattr=-ual < %s | FileCheck %s --check-prefix=LA64-ALIGNED diff --git a/llvm/test/CodeGen/LoongArch/xray-attribute-instrumentation.ll b/llvm/test/CodeGen/LoongArch/xray-attribute-instrumentation.ll index 09442216c469b..8999c20387003 100644 --- a/llvm/test/CodeGen/LoongArch/xray-attribute-instrumentation.ll +++ b/llvm/test/CodeGen/LoongArch/xray-attribute-instrumentation.ll @@ -1,5 +1,5 @@ -; RUN: llc --mtriple=loongarch64 %s -o - | FileCheck %s -; RUN: llc --mtriple=loongarch64 -filetype=obj %s -o %t +; RUN: llc --mtriple=loongarch64 -mattr=+d %s -o - | FileCheck %s +; RUN: llc --mtriple=loongarch64 -mattr=+d -filetype=obj %s -o %t ; RUN: llvm-readobj -r %t | FileCheck %s --check-prefix=RELOC define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" { diff --git a/llvm/test/CodeGen/LoongArch/zext-with-load-is-free.ll b/llvm/test/CodeGen/LoongArch/zext-with-load-is-free.ll index d5c505f7160e0..d745cd6378031 100644 --- a/llvm/test/CodeGen/LoongArch/zext-with-load-is-free.ll +++ b/llvm/test/CodeGen/LoongArch/zext-with-load-is-free.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3 -; RUN: llc --mtriple=loongarch32 -verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch32 -mattr=+d -verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA32 -; RUN: llc --mtriple=loongarch64 -verify-machineinstrs < %s \ +; RUN: llc --mtriple=loongarch64 -mattr=+d -verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 define zeroext i8 @test_zext_i8(ptr %p) nounwind { diff --git a/llvm/test/Transforms/AtomicExpand/LoongArch/load-store-atomic.ll b/llvm/test/Transforms/AtomicExpand/LoongArch/load-store-atomic.ll index 77c237a38a489..69448dc2bc8eb 100644 --- a/llvm/test/Transforms/AtomicExpand/LoongArch/load-store-atomic.ll +++ b/llvm/test/Transforms/AtomicExpand/LoongArch/load-store-atomic.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S --mtriple=loongarch32 --passes=atomic-expand %s | FileCheck %s --check-prefix=LA32 -; RUN: opt -S --mtriple=loongarch64 --passes=atomic-expand %s | FileCheck %s --check-prefix=LA64 +; RUN: opt -S --mtriple=loongarch32 -mattr=+d --passes=atomic-expand %s | FileCheck %s --check-prefix=LA32 +; RUN: opt -S --mtriple=loongarch64 -mattr=+d --passes=atomic-expand %s | FileCheck %s --check-prefix=LA64 define i8 @load_acquire_i8(ptr %ptr) { ; LA32-LABEL: @load_acquire_i8( diff --git a/llvm/test/Transforms/CodeGenPrepare/LoongArch/splitgep.ll b/llvm/test/Transforms/CodeGenPrepare/LoongArch/splitgep.ll index 20cc25e95adf9..304e703c09a18 100644 --- a/llvm/test/Transforms/CodeGenPrepare/LoongArch/splitgep.ll +++ b/llvm/test/Transforms/CodeGenPrepare/LoongArch/splitgep.ll @@ -1,4 +1,4 @@ -; RUN: opt --mtriple=loongarch64 -S --passes='require,function(codegenprepare)' %s | FileCheck %s +; RUN: opt --mtriple=loongarch64 -mattr=+d -S --passes='require,function(codegenprepare)' %s | FileCheck %s ; Check that we have deterministic output define void @test(ptr %sp, ptr %t, i32 %n) { diff --git a/llvm/test/Transforms/LoopDataPrefetch/LoongArch/basic.ll b/llvm/test/Transforms/LoopDataPrefetch/LoongArch/basic.ll index 55a2a2970d2d7..8553171ac68ac 100644 --- a/llvm/test/Transforms/LoopDataPrefetch/LoongArch/basic.ll +++ b/llvm/test/Transforms/LoopDataPrefetch/LoongArch/basic.ll @@ -1,6 +1,6 @@ ;; Tag this 'XFAIL' because we need a few more TTIs and ISels. ; XFAIL: * -; RUN: opt --mtriple=loongarch64 --passes=loop-data-prefetch -loongarch-enable-loop-data-prefetch -S < %s | FileCheck %s +; RUN: opt --mtriple=loongarch64 -mattr=+d --passes=loop-data-prefetch -loongarch-enable-loop-data-prefetch -S < %s | FileCheck %s define void @foo(ptr %a, ptr %b) { entry: