aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2023-09-08 08:03:23 +0200
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>2023-09-08 13:28:37 +0200
commit0e25761b373f075a41d43b9462366a653dbf1121 (patch)
tree786291b2d5bccca767f6a9401490dfbdab9c568f /gcc
parent478c37e72345307fad0aa06e0dae133eae206b0c (diff)
downloadgcc-0e25761b373f075a41d43b9462366a653dbf1121.zip
gcc-0e25761b373f075a41d43b9462366a653dbf1121.tar.gz
gcc-0e25761b373f075a41d43b9462366a653dbf1121.tar.bz2
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 <christoph.muellner@vrull.eu> gcc/ChangeLog: * config/riscv/thead.md: Use more appropriate mode attributes for extensions.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/riscv/thead.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/riscv/thead.md b/gcc/config/riscv/thead.md
index 29f98de..c6bd688 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_extendhi<GPR:mode>2_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" "<GPR:MODE>")])
(define_insn "*th_clz<mode>2"
[(set (match_operand:X 0 "register_operand" "=r")