public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r15-393] Revert "MIPS: Support constraint 'w' for MSA instruction"
@ 2024-05-13 6:17 YunQiang Su
0 siblings, 0 replies; only message in thread
From: YunQiang Su @ 2024-05-13 6:17 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0c6dd4b0973738ce43e76b468a002ab5eb58aaf4
commit r15-393-g0c6dd4b0973738ce43e76b468a002ab5eb58aaf4
Author: YunQiang Su <syq@debian.org>
Date: Mon May 13 14:15:38 2024 +0800
Revert "MIPS: Support constraint 'w' for MSA instruction"
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.
Diff:
---
gcc/config/mips/constraints.md | 3 ---
gcc/testsuite/gcc.target/mips/msa-inline-asm.c | 9 ---------
2 files changed, 12 deletions(-)
diff --git a/gcc/config/mips/constraints.md b/gcc/config/mips/constraints.md
index f5c881790382..a96028dd7460 100644
--- a/gcc/config/mips/constraints.md
+++ b/gcc/config/mips/constraints.md
@@ -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
index bdf6816ab3b4..000000000000
--- a/gcc/testsuite/gcc.target/mips/msa-inline-asm.c
+++ /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\]*" } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-13 6:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13 6:17 [gcc r15-393] Revert "MIPS: Support constraint 'w' for MSA instruction" YunQiang Su
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).