[gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Fix AVL_TYPE attribute of tuple mode mov<mode>
Jeff Law
law@gcc.gnu.org
Mon Oct 30 18:31:16 GMT 2023
https://gcc.gnu.org/g:1678279b17a979727356e3828400fbb91f0c48b0
commit 1678279b17a979727356e3828400fbb91f0c48b0
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Mon Oct 23 06:46:43 2023 +0800
RISC-V: Fix AVL_TYPE attribute of tuple mode mov<mode>
The tuple mode mov<mode> pattern doesn't have avl_type so it is invalid attribute.
gcc/ChangeLog:
* config/riscv/vector.md: Fix avl_type attribute of tuple mov<mode>.
(cherry picked from commit 75322a6d0cf6d611973d3730fd888ce37407c41f)
Diff:
---
gcc/config/riscv/vector.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md
index 32955fb8cf0e..ef91950178f1 100644
--- a/gcc/config/riscv/vector.md
+++ b/gcc/config/riscv/vector.md
@@ -1208,7 +1208,8 @@
DONE;
}
[(set_attr "type" "vmov,vlde,vste")
- (set_attr "mode" "<VT:MODE>")])
+ (set_attr "mode" "<VT:MODE>")
+ (set (attr "avl_type") (const_int INVALID_ATTRIBUTE))])
;; -----------------------------------------------------------------
;; ---- VLS Moves Operations
More information about the Gcc-cvs
mailing list