https://gcc.gnu.org/g:988520330b92848548cc88a449db4cd5d9f5bcf1
commit r17-1530-g988520330b92848548cc88a449db4cd5d9f5bcf1 Author: [email protected] <[email protected]> Date: Sat Jun 13 08:40:29 2026 -0600 [PATCH] Fix data type iterator of pack rs reg This patch would like to Fix data type iterator of pack rs reg Signed-off-by: Ciyan Pan <[email protected]> gcc/ChangeLog: * config/riscv/crypto.md (riscv_pack): Change HISI iterator to HX as we must match half a target word for pack. Diff: --- gcc/config/riscv/crypto.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/riscv/crypto.md b/gcc/config/riscv/crypto.md index b9ea899e18b2..2f3cc7e43b04 100644 --- a/gcc/config/riscv/crypto.md +++ b/gcc/config/riscv/crypto.md @@ -95,10 +95,10 @@ "unzip\t%0,%1" [(set_attr "type" "crypto")]) -(define_insn "riscv_pack_<X:mode><HISI:mode>" +(define_insn "riscv_pack_<X:mode><HX:mode>" [(set (match_operand:X 0 "register_operand" "=r") - (unspec:X [(match_operand:HISI 1 "register_operand" "r") - (match_operand:HISI 2 "register_operand" "r")] + (unspec:X [(match_operand:HX 1 "register_operand" "r") + (match_operand:HX 2 "register_operand" "r")] UNSPEC_PACK))] "TARGET_ZBKB" "pack\t%0,%1,%2"
