From: Christoph Müllner Date: Fri, 8 Sep 2023 06:03:23 +0000 (+0200) Subject: riscv: thead: Fix mode attribute for extension patterns X-Git-Tag: basepoints/gcc-15~6332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e25761b373f075a41d43b9462366a653dbf1121;p=thirdparty%2Fgcc.git riscv: thead: Fix mode attribute for extension patterns The mode attribute of an extension pattern is usually set to the target type. Let's follow this convention consistently for xtheadbb. Signed-off-by: Christoph Müllner gcc/ChangeLog: * config/riscv/thead.md: Use more appropriate mode attributes for extensions. --- diff --git a/gcc/config/riscv/thead.md b/gcc/config/riscv/thead.md index 29f98dec3a8a..c6bd6887f9f7 100644 --- a/gcc/config/riscv/thead.md +++ b/gcc/config/riscv/thead.md @@ -90,7 +90,7 @@ th.extu\t%0,%1,31,0 lwu\t%0,%1" [(set_attr "type" "bitmanip,load") - (set_attr "mode" "SI")]) + (set_attr "mode" "DI")]) (define_insn "*zero_extendhi2_th_extu" [(set (match_operand:GPR 0 "register_operand" "=r,r") @@ -100,7 +100,7 @@ th.extu\t%0,%1,15,0 lhu\t%0,%1" [(set_attr "type" "bitmanip,load") - (set_attr "mode" "HI")]) + (set_attr "mode" "")]) (define_insn "*th_clz2" [(set (match_operand:X 0 "register_operand" "=r")