]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "MIPS: Support constraint 'w' for MSA instruction"
authorYunQiang Su <syq@debian.org>
Mon, 13 May 2024 06:15:38 +0000 (14:15 +0800)
committerYunQiang Su <syq@debian.org>
Mon, 13 May 2024 06:15:38 +0000 (14:15 +0800)
This reverts commit 9ba01240864ac446052d97692e2199539b7c76d8.

It is not needed at all:
  asm volatile ("fmadd.d %w0, %1, %2" : "+f"(a) : "f"(b), "f"(c))
is OK for us.

gcc/config/mips/constraints.md
gcc/testsuite/gcc.target/mips/msa-inline-asm.c [deleted file]

index f5c8817903827cb3400137b3da34f6772f0b98b3..a96028dd746065a079ffff0feb9b7b9ffdeb3959 100644 (file)
@@ -29,9 +29,6 @@
 (define_register_constraint "f" "TARGET_HARD_FLOAT ? FP_REGS : NO_REGS"
   "A floating-point register (if available).")
 
-(define_register_constraint "w" "ISA_HAS_MSA ? FP_REGS : NO_REGS"
-  "A MIPS SIMD register (if available).")
-
 (define_register_constraint "h" "NO_REGS"
   "Formerly the @code{hi} register.  This constraint is no longer supported.")
 
diff --git a/gcc/testsuite/gcc.target/mips/msa-inline-asm.c b/gcc/testsuite/gcc.target/mips/msa-inline-asm.c
deleted file mode 100644 (file)
index bdf6816..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-mno-mips16 -mfp64 -mhard-float -mmsa" } */
-
-double
-f(double a, double b, double c) {
-  asm volatile ("fmadd.d %w0, %w1, %w2" : "+w"(a): "w"(b), "w"(c));
-  return a;
-}
-/* { dg-final { scan-assembler "fmadd.d \\\$w0, \\\$w\[0-9\]*, \\\$w\[0-9\]*" } }  */