Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/arm Enable sdiv/udiv instr...



details:   https://anonhg.NetBSD.org/src/rev/505fddbefae6
branches:  trunk
changeset: 789378:505fddbefae6
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Aug 17 05:43:02 2013 +0000

description:
Enable sdiv/udiv instructions for both Thumb2 and ARM if hwdiv is supported.

diffstat:

 external/gpl3/gcc/dist/gcc/config/arm/thumb2.md |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 9f7deacc8489 -r 505fddbefae6 external/gpl3/gcc/dist/gcc/config/arm/thumb2.md
--- a/external/gpl3/gcc/dist/gcc/config/arm/thumb2.md   Sat Aug 17 05:42:06 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/arm/thumb2.md   Sat Aug 17 05:43:02 2013 +0000
@@ -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")]



Home | Main Index | Thread Index | Old Index