diff --git a/llvm/lib/Target/LoongArch/LoongArch.td b/llvm/lib/Target/LoongArch/LoongArch.td --- a/llvm/lib/Target/LoongArch/LoongArch.td +++ b/llvm/lib/Target/LoongArch/LoongArch.td @@ -36,57 +36,39 @@ def FeatureBasicF : SubtargetFeature<"f", "HasBasicF", "true", "'F' (Single-Precision Floating-Point)">; -def HasBasicF - : Predicate<"Subtarget->hasBasicF()">, - AssemblerPredicate<(all_of FeatureBasicF), - "'F' (Single-Precision Floating-Point)">; +def HasBasicF : Predicate<"Subtarget->hasBasicF()">; // Double Precision floating point def FeatureBasicD : SubtargetFeature<"d", "HasBasicD", "true", "'D' (Double-Precision Floating-Point)", [FeatureBasicF]>; -def HasBasicD - : Predicate<"Subtarget->hasBasicD()">, - AssemblerPredicate<(all_of FeatureBasicD), - "'D' (Double-Precision Floating-Point)">; +def HasBasicD : Predicate<"Subtarget->hasBasicD()">; // Loongson SIMD eXtension (LSX) def FeatureExtLSX : SubtargetFeature<"lsx", "HasExtLSX", "true", "'LSX' (Loongson SIMD Extension)", [FeatureBasicD]>; -def HasExtLSX - : Predicate<"Subtarget->hasExtLSX()">, - AssemblerPredicate<(all_of FeatureExtLSX), - "'LSX' (Loongson SIMD Extension)">; +def HasExtLSX : Predicate<"Subtarget->hasExtLSX()">; // Loongson Advanced SIMD eXtension (LASX) def FeatureExtLASX : SubtargetFeature<"lasx", "HasExtLASX", "true", "'LASX' (Loongson Advanced SIMD Extension)", [FeatureExtLSX]>; -def HasExtLASX - : Predicate<"Subtarget->hasExtLASX()">, - AssemblerPredicate<(all_of FeatureExtLASX), - "'LASX' (Loongson Advanced SIMD Extension)">; +def HasExtLASX : Predicate<"Subtarget->hasExtLASX()">; // Loongson VirtualiZation (LVZ) def FeatureExtLVZ : SubtargetFeature<"lvz", "HasExtLVZ", "true", "'LVZ' (Loongson Virtualization Extension)">; -def HasExtLVZ - : Predicate<"Subtarget->hasExtLVZ()">, - AssemblerPredicate<(all_of FeatureExtLVZ), - "'LVZ' (Loongson Virtualization Extension)">; +def HasExtLVZ : Predicate<"Subtarget->hasExtLVZ()">; // Loongson Binary Translation (LBT) def FeatureExtLBT : SubtargetFeature<"lbt", "HasExtLBT", "true", "'LBT' (Loongson Binary Translation Extension)">; -def HasExtLBT - : Predicate<"Subtarget->hasExtLBT()">, - AssemblerPredicate<(all_of FeatureExtLBT), - "'LBT' (Loongson Binary Translation Extension)">; +def HasExtLBT : Predicate<"Subtarget->hasExtLBT()">; // Expand la.global as la.pcrel def LaGlobalWithPcrel diff --git a/llvm/test/MC/LoongArch/Basic/Float/d-arith.s b/llvm/test/MC/LoongArch/Basic/Float/d-arith.s --- a/llvm/test/MC/LoongArch/Basic/Float/d-arith.s +++ b/llvm/test/MC/LoongArch/Basic/Float/d-arith.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/d-bound-check.s b/llvm/test/MC/LoongArch/Basic/Float/d-bound-check.s --- a/llvm/test/MC/LoongArch/Basic/Float/d-bound-check.s +++ b/llvm/test/MC/LoongArch/Basic/Float/d-bound-check.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/d-branch.s b/llvm/test/MC/LoongArch/Basic/Float/d-branch.s --- a/llvm/test/MC/LoongArch/Basic/Float/d-branch.s +++ b/llvm/test/MC/LoongArch/Basic/Float/d-branch.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/d-comp.s b/llvm/test/MC/LoongArch/Basic/Float/d-comp.s --- a/llvm/test/MC/LoongArch/Basic/Float/d-comp.s +++ b/llvm/test/MC/LoongArch/Basic/Float/d-comp.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/d-conv.s b/llvm/test/MC/LoongArch/Basic/Float/d-conv.s --- a/llvm/test/MC/LoongArch/Basic/Float/d-conv.s +++ b/llvm/test/MC/LoongArch/Basic/Float/d-conv.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/d-invalid.s b/llvm/test/MC/LoongArch/Basic/Float/d-invalid.s --- a/llvm/test/MC/LoongArch/Basic/Float/d-invalid.s +++ b/llvm/test/MC/LoongArch/Basic/Float/d-invalid.s @@ -1,4 +1,4 @@ -# RUN: not llvm-mc --triple=loongarch32 -mattr=+d %s 2>&1 | FileCheck %s +# RUN: not llvm-mc --triple=loongarch32 %s 2>&1 | FileCheck %s # CHECK: :[[#@LINE+1]]:1: error: instruction requires the following: LA64 Basic Integer and Privilege Instruction Set movgr2fr.d $fa0, $a0 diff --git a/llvm/test/MC/LoongArch/Basic/Float/d-memory.s b/llvm/test/MC/LoongArch/Basic/Float/d-memory.s --- a/llvm/test/MC/LoongArch/Basic/Float/d-memory.s +++ b/llvm/test/MC/LoongArch/Basic/Float/d-memory.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/d-move.s b/llvm/test/MC/LoongArch/Basic/Float/d-move.s --- a/llvm/test/MC/LoongArch/Basic/Float/d-move.s +++ b/llvm/test/MC/LoongArch/Basic/Float/d-move.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding --defsym=LA64=1 \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding --defsym=LA64=1 \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM,ASM-AND-OBJ64,ASM64 %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj --defsym=LA64=1 \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj --defsym=LA64=1 \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM-AND-OBJ64 %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/f-arith.s b/llvm/test/MC/LoongArch/Basic/Float/f-arith.s --- a/llvm/test/MC/LoongArch/Basic/Float/f-arith.s +++ b/llvm/test/MC/LoongArch/Basic/Float/f-arith.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/f-bound-check.s b/llvm/test/MC/LoongArch/Basic/Float/f-bound-check.s --- a/llvm/test/MC/LoongArch/Basic/Float/f-bound-check.s +++ b/llvm/test/MC/LoongArch/Basic/Float/f-bound-check.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/f-branch.s b/llvm/test/MC/LoongArch/Basic/Float/f-branch.s --- a/llvm/test/MC/LoongArch/Basic/Float/f-branch.s +++ b/llvm/test/MC/LoongArch/Basic/Float/f-branch.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/f-comp.s b/llvm/test/MC/LoongArch/Basic/Float/f-comp.s --- a/llvm/test/MC/LoongArch/Basic/Float/f-comp.s +++ b/llvm/test/MC/LoongArch/Basic/Float/f-comp.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/f-conv.s b/llvm/test/MC/LoongArch/Basic/Float/f-conv.s --- a/llvm/test/MC/LoongArch/Basic/Float/f-conv.s +++ b/llvm/test/MC/LoongArch/Basic/Float/f-conv.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/f-invalid.s b/llvm/test/MC/LoongArch/Basic/Float/f-invalid.s deleted file mode 100644 --- a/llvm/test/MC/LoongArch/Basic/Float/f-invalid.s +++ /dev/null @@ -1,4 +0,0 @@ -# RUN: not llvm-mc --triple=loongarch32 -mattr=+f %s 2>&1 | FileCheck %s - -# CHECK: :[[#@LINE+1]]:1: error: instruction requires the following: 'D' (Double-Precision Floating-Point) -fadd.d $fa0, $fa0, $fa0 diff --git a/llvm/test/MC/LoongArch/Basic/Float/f-memory.s b/llvm/test/MC/LoongArch/Basic/Float/f-memory.s --- a/llvm/test/MC/LoongArch/Basic/Float/f-memory.s +++ b/llvm/test/MC/LoongArch/Basic/Float/f-memory.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Float/f-move.s b/llvm/test/MC/LoongArch/Basic/Float/f-move.s --- a/llvm/test/MC/LoongArch/Basic/Float/f-move.s +++ b/llvm/test/MC/LoongArch/Basic/Float/f-move.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch32 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --show-encoding \ +# RUN: llvm-mc %s --triple=loongarch64 --show-encoding \ # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s -# RUN: llvm-mc %s --triple=loongarch32 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s -# RUN: llvm-mc %s --triple=loongarch64 --mattr=+f --filetype=obj \ +# RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \ # RUN: | llvm-objdump -d - \ # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s diff --git a/llvm/test/MC/LoongArch/Basic/Integer/invalid.s b/llvm/test/MC/LoongArch/Basic/Integer/invalid.s --- a/llvm/test/MC/LoongArch/Basic/Integer/invalid.s +++ b/llvm/test/MC/LoongArch/Basic/Integer/invalid.s @@ -1,9 +1,7 @@ ## Test invalid instructions on both loongarch32 and loongarch64 target. -# RUN: not llvm-mc --triple=loongarch32 --mattr=-f %s 2>&1 \ -# RUN: | FileCheck %s --check-prefixes=CHECK,CHECK64 -# RUN: not llvm-mc --triple=loongarch64 --mattr=-f %s 2>&1 --defsym=LA64=1 \ -# RUN: | FileCheck %s +# RUN: not llvm-mc --triple=loongarch32 %s 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK64 +# RUN: not llvm-mc --triple=loongarch64 %s 2>&1 --defsym=LA64=1 | FileCheck %s ## Out of range immediates ## uimm2 @@ -181,12 +179,6 @@ ## Instructions outside the base integer ISA ## TODO: Test instructions in LSX/LASX/LBT/LVZ after their introduction. -## Floating-Point mnemonics -fadd.s $fa0, $fa0, $fa0 -# CHECK: :[[#@LINE-1]]:1: error: instruction requires the following: 'F' (Single-Precision Floating-Point) -fadd.d $fa0, $fa0, $fa0 -# CHECK: :[[#@LINE-1]]:1: error: instruction requires the following: 'D' (Double-Precision Floating-Point) - ## Using floating point registers when integer registers are expected sll.w $a0, $a0, $fa0 # CHECK: :[[#@LINE-1]]:18: error: invalid operand for instruction