@@ -5211,19 +5211,19 @@
return "rol%.w %2,%0";
})
-(define_insn ""
+(define_insn "*rotlhi3_lowpart"
[(set (strict_low_part (match_operand:HI 0 "register_operand" "+d"))
(rotate:HI (match_dup 0)
(match_operand:HI 1 "general_operand" "dIP")))]
"!TARGET_COLDFIRE"
{
- if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 8)
+ if (GET_CODE (operands[1]) == CONST_INT && INTVAL (operands[1]) >= 8)
{
- operands[2] = GEN_INT (16 - INTVAL (operands[2]));
- return "ror%.w %2,%0";
+ operands[1] = GEN_INT (16 - INTVAL (operands[1]));
+ return "ror%.w %1,%0";
}
else
- return "rol%.w %2,%0";
+ return "rol%.w %1,%0";
})
(define_insn "rotlqi3"
@@ -5241,19 +5241,19 @@
return "rol%.b %2,%0";
})
-(define_insn ""
+(define_insn "*rotlqi3_lowpart"
[(set (strict_low_part (match_operand:QI 0 "register_operand" "+d"))
(rotate:QI (match_dup 0)
(match_operand:QI 1 "general_operand" "dI")))]
"!TARGET_COLDFIRE"
{
- if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 4)
+ if (GET_CODE (operands[1]) == CONST_INT && INTVAL (operands[1]) >= 4)
{
- operands[2] = GEN_INT (8 - INTVAL (operands[2]));
- return "ror%.b %2,%0";
+ operands[1] = GEN_INT (8 - INTVAL (operands[1]));
+ return "ror%.b %1,%0";
}
else
- return "rol%.b %2,%0";
+ return "rol%.b %1,%0";
})
(define_insn "rotrsi3"