aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2024-01-30 10:22:27 +0100
committerChristoph Müllner <christoph.muellner@vrull.eu>2024-01-30 10:55:12 +0100
commit87ed338808f8d56b1270724584218cf7d801fe5b (patch)
tree5ed1038ba1807bb711a7dc05ecef0ba1c74e2c09
parentd1d144d80f27f7a027ec8a05758555e7aa45462f (diff)
downloadgcc-87ed338808f8d56b1270724584218cf7d801fe5b.zip
gcc-87ed338808f8d56b1270724584218cf7d801fe5b.tar.gz
gcc-87ed338808f8d56b1270724584218cf7d801fe5b.tar.bz2
riscv: Move UNSPEC_XTHEAD* from unspecv to unspec
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>
-rw-r--r--gcc/config/riscv/riscv.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md
index edcaec4..b320ad0 100644
--- a/gcc/config/riscv/riscv.md
+++ b/gcc/config/riscv/riscv.md
@@ -89,6 +89,10 @@
;; Workaround for HFmode without hardware extension
UNSPEC_FMV_SFP16_X
+
+ ;; XTheadFmv moves
+ UNSPEC_XTHEADFMV
+ UNSPEC_XTHEADFMV_HW
])
(define_c_enum "unspecv" [
@@ -127,10 +131,6 @@
;; Zihintpause unspec
UNSPECV_PAUSE
- ;; XTheadFmv unspec
- UNSPEC_XTHEADFMV
- UNSPEC_XTHEADFMV_HW
-
;; XTheadInt unspec
UNSPECV_XTHEADINT_PUSH
UNSPECV_XTHEADINT_POP