aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m32r/m32r.md
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/m32r/m32r.md')
-rw-r--r--gcc/config/m32r/m32r.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/config/m32r/m32r.md b/gcc/config/m32r/m32r.md
index f1ab55e03c5..ad1217e8981 100644
--- a/gcc/config/m32r/m32r.md
+++ b/gcc/config/m32r/m32r.md
@@ -839,11 +839,10 @@
(match_dup 3)]
"
{
- rtx op0 = gen_lowpart (SImode, operands[0]);
rtx shift = GEN_INT (24);
- operands[2] = gen_ashlsi3 (op0, op0, shift);
- operands[3] = gen_ashrsi3 (op0, op0, shift);
+ operands[2] = gen_ashlsi3 (operands[0], operands[0], shift);
+ operands[3] = gen_ashrsi3 (operands[0], operands[0], shift);
}")
(define_insn "extendhisi2"
@@ -865,11 +864,10 @@
(match_dup 3)]
"
{
- rtx op0 = gen_lowpart (SImode, operands[0]);
rtx shift = GEN_INT (16);
- operands[2] = gen_ashlsi3 (op0, op0, shift);
- operands[3] = gen_ashrsi3 (op0, op0, shift);
+ operands[2] = gen_ashlsi3 (operands[0], operands[0], shift);
+ operands[3] = gen_ashrsi3 (operands[0], operands[0], shift);
}")
;; Arithmetic instructions.