public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Fixed ICE caused by missing operand
@ 2023-09-26 15:10 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-09-26 15:10 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:280909b33b8fa290c1a565740037e46fa857e17c
commit 280909b33b8fa290c1a565740037e46fa857e17c
Author: Lehua Ding <lehua.ding@rivai.ai>
Date: Wed Sep 20 13:35:16 2023 +0800
RISC-V: Fixed ICE caused by missing operand
This ICE appears in GCC compiled with -O2 flags.
PR target/111488
gcc/ChangeLog:
* config/riscv/autovec-opt.md: Add missed operand.
(cherry picked from commit d024a31a09d18d2586769602205a60ff3afe568c)
Diff:
---
gcc/config/riscv/autovec-opt.md | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/gcc/config/riscv/autovec-opt.md b/gcc/config/riscv/autovec-opt.md
index cef9f157e99..66c77ad6ebb 100644
--- a/gcc/config/riscv/autovec-opt.md
+++ b/gcc/config/riscv/autovec-opt.md
@@ -957,7 +957,8 @@
riscv_vector::emit_vlmax_insn (extend_icode, riscv_vector::UNARY_OP,
extend_ops);
- rtx ops[] = {operands[0], tmp, operands[3], operands[1]};
+ rtx ops[] = {operands[0], tmp, operands[3], operands[1],
+ RVV_VUNDEF(<MODE>mode)};
riscv_vector::emit_vlmax_insn (code_for_pred_mul_plus (<MODE>mode),
riscv_vector::TERNARY_OP, ops);
DONE;
@@ -1008,7 +1009,8 @@
rtx ext_ops[] = {tmp, operands[2]};
riscv_vector::emit_vlmax_insn (icode, riscv_vector::UNARY_OP, ext_ops);
- rtx ops[] = {operands[0], tmp, operands[3], operands[1]};
+ rtx ops[] = {operands[0], tmp, operands[3], operands[1],
+ RVV_VUNDEF(<MODE>mode)};
riscv_vector::emit_vlmax_insn (code_for_pred_mul (PLUS, <MODE>mode),
riscv_vector::TERNARY_OP_FRM_DYN, ops);
DONE;
@@ -1059,7 +1061,8 @@
rtx ext_ops[] = {tmp, operands[2]};
riscv_vector::emit_vlmax_insn (icode, riscv_vector::UNARY_OP, ext_ops);
- rtx ops[] = {operands[0], tmp, operands[3], operands[1]};
+ rtx ops[] = {operands[0], tmp, operands[3], operands[1],
+ RVV_VUNDEF(<MODE>mode)};
riscv_vector::emit_vlmax_insn (code_for_pred_mul_neg (PLUS, <MODE>mode),
riscv_vector::TERNARY_OP_FRM_DYN, ops);
DONE;
@@ -1110,7 +1113,8 @@
rtx ext_ops[] = {tmp, operands[2]};
riscv_vector::emit_vlmax_insn (icode, riscv_vector::UNARY_OP, ext_ops);
- rtx ops[] = {operands[0], tmp, operands[3], operands[1]};
+ rtx ops[] = {operands[0], tmp, operands[3], operands[1],
+ RVV_VUNDEF(<MODE>mode)};
riscv_vector::emit_vlmax_insn (code_for_pred_mul (MINUS, <MODE>mode),
riscv_vector::TERNARY_OP_FRM_DYN, ops);
DONE;
@@ -1163,7 +1167,8 @@
rtx ext_ops[] = {tmp, operands[2]};
riscv_vector::emit_vlmax_insn (icode, riscv_vector::UNARY_OP, ext_ops);
- rtx ops[] = {operands[0], tmp, operands[3], operands[1]};
+ rtx ops[] = {operands[0], tmp, operands[3], operands[1],
+ RVV_VUNDEF(<MODE>mode)};
riscv_vector::emit_vlmax_insn (code_for_pred_mul_neg (MINUS, <MODE>mode),
riscv_vector::TERNARY_OP_FRM_DYN, ops);
DONE;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-26 15:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 15:10 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Fixed ICE caused by missing operand Jeff Law
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).