Hi,
Bohan's patch used __NORMAL_OP_TA2 | BINARY_OP_P but this causes a
warning in shuffle_interleave_even_odd_patterns. This patch just
uses (unsigned) __NORMAL_OP_TA2 like in expand_const_vector_onestep.
Pushing as obvious.
Regards
Robin
gcc/ChangeLog:
* config/riscv/riscv-v.cc (shuffle_interleave_even_odd_patterns):
Cast to unsigned.
---
gcc/config/riscv/riscv-v.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc
index dd4c93992c1..726be0e001f 100644
--- a/gcc/config/riscv/riscv-v.cc
+++ b/gcc/config/riscv/riscv-v.cc
@@ -3680,7 +3680,7 @@ shuffle_interleave_even_odd_patterns (struct
expand_vec_perm_d *d)
insn_code icode
= code_for_xt_pred (even ? UNSPEC_XT_VILE : UNSPEC_XT_VILO, vmode);
- emit_vlmax_insn (icode, __NORMAL_OP_TA2 | BINARY_OP_P, ops);
+ emit_vlmax_insn (icode, (unsigned) __NORMAL_OP_TA2 | BINARY_OP_P, ops);
return true;
}
-- 2.56.0