Module Name: src Committed By: matt Date: Sat Aug 17 05:43:02 UTC 2013
Modified Files: src/external/gpl3/gcc/dist/gcc/config/arm: thumb2.md Log Message: Enable sdiv/udiv instructions for both Thumb2 and ARM if hwdiv is supported. To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/arm/thumb2.md Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/arm/thumb2.md diff -u src/external/gpl3/gcc/dist/gcc/config/arm/thumb2.md:1.1.1.2 src/external/gpl3/gcc/dist/gcc/config/arm/thumb2.md:1.2 --- src/external/gpl3/gcc/dist/gcc/config/arm/thumb2.md:1.1.1.2 Tue Sep 18 06:15:28 2012 +++ src/external/gpl3/gcc/dist/gcc/config/arm/thumb2.md Sat Aug 17 05:43:02 2013 @@ -1208,7 +1208,7 @@ [(set (match_operand:SI 0 "s_register_operand" "=r") (div:SI (match_operand:SI 1 "s_register_operand" "r") (match_operand:SI 2 "s_register_operand" "r")))] - "TARGET_THUMB2 && arm_arch_hwdiv" + "(TARGET_THUMB2 || TARGET_ARM) && arm_arch_hwdiv" "sdiv%?\t%0, %1, %2" [(set_attr "predicable" "yes") (set_attr "insn" "sdiv")] @@ -1218,7 +1218,7 @@ [(set (match_operand:SI 0 "s_register_operand" "=r") (udiv:SI (match_operand:SI 1 "s_register_operand" "r") (match_operand:SI 2 "s_register_operand" "r")))] - "TARGET_THUMB2 && arm_arch_hwdiv" + "(TARGET_THUMB2 || TARGET_ARM) && arm_arch_hwdiv" "udiv%?\t%0, %1, %2" [(set_attr "predicable" "yes") (set_attr "insn" "udiv")]