diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f5ae6f5fe9c..7a40e84489e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-01-15 Kazu Hirata + + * config/m32r/m32r.md: Remove useless calls to gen_lowpart. + 2004-01-15 Kazu Hirata * config/h8300/coff.h: Replace Hitachi with Renesas. 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.