diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 738c3a7..afa6e97 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -11200,12 +11200,18 @@ (define_insn "arm_rev" [(set (match_operand:SI 0 "s_register_operand" "=r") (bswap:SI (match_operand:SI 1 "s_register_operand" "r")))] - "TARGET_EITHER && arm_arch6" + "TARGET_32BIT && arm_arch6" + "rev%?\t%0, %1" + [(set_attr "predicable" "yes") + (set_attr "length" "4")] +) + +(define_insn "thumb1_rev" + [(set (match_operand:SI 0 "s_register_operand" "=l") + (bswap:SI (match_operand:SI 1 "s_register_operand" "l")))] + "TARGET_THUMB1 && arm_arch6" "rev\t%0, %1" - [(set (attr "length") - (if_then_else (eq_attr "is_thumb" "yes") - (const_int 2) - (const_int 4)))] + [(set_attr "length" "2")] ) (define_expand "arm_legacy_rev"