]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
riscv: Move UNSPEC_XTHEAD* from unspecv to unspec
authorChristoph Müllner <christoph.muellner@vrull.eu>
Tue, 30 Jan 2024 09:22:27 +0000 (10:22 +0100)
committerChristoph Müllner <christoph.muellner@vrull.eu>
Tue, 30 Jan 2024 09:55:12 +0000 (10:55 +0100)
The UNSPEC_XTHEAD* macros ended up in the unspecv enum,
which broke gcc/testsuite/gcc.target/riscv/xtheadfmv-fmv.c.
The INSNs expect these unspecs to be not volatile.
Further, there is not reason to have them defined volatile.
So let's simply move the macros into the unspec enum.

With this patch we have again 0 fails in riscv.exp.

gcc/ChangeLog:

* config/riscv/riscv.md: Move UNSPEC_XTHEADFMV* to unspec enum.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/config/riscv/riscv.md

index edcaec4a7865b7fe33271638d788929312ebf414..b320ad0210e3d28af15fee05260298d130daff53 100644 (file)
 
   ;; Workaround for HFmode without hardware extension
   UNSPEC_FMV_SFP16_X
+
+  ;; XTheadFmv moves
+  UNSPEC_XTHEADFMV
+  UNSPEC_XTHEADFMV_HW
 ])
 
 (define_c_enum "unspecv" [
   ;; Zihintpause unspec
   UNSPECV_PAUSE
 
-  ;; XTheadFmv unspec
-  UNSPEC_XTHEADFMV
-  UNSPEC_XTHEADFMV_HW
-
   ;; XTheadInt unspec
   UNSPECV_XTHEADINT_PUSH
   UNSPECV_XTHEADINT_POP