aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2014-08-05 09:56:31 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2014-08-05 09:56:31 +0000
commit66224c7d68c5fbcc5d4573a8c3897bc451bc473c (patch)
tree7358e37fb9d80f31bd597b955335c9c429e64bc3 /gcc
parent0021b8a5ab08df41c31aa9992d792983fd0ad0f7 (diff)
downloadgcc-66224c7d68c5fbcc5d4573a8c3897bc451bc473c.zip
gcc-66224c7d68c5fbcc5d4573a8c3897bc451bc473c.tar.gz
gcc-66224c7d68c5fbcc5d4573a8c3897bc451bc473c.tar.bz2
[ARM] Adjust clz, rbit and rev patterns for -mrestrict-it.
* config/arm/arm.md (clzsi2): Set predicable_short_it attr to no. (rbitsi2): Likewise. (*arm_rev): Set predicable and predicable_short_it attributes. From-SVN: r213630
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/arm/arm.md4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cec3fc6..b58e798 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+ * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
+ (rbitsi2): Likewise.
+ (*arm_rev): Set predicable and predicable_short_it attributes.
+
+2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
* convert.c (convert_to_integer): Guard transformation to lrint by
-fno-math-errno.
diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
index bd8ea8f..7a50993 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -10662,6 +10662,7 @@
"TARGET_32BIT && arm_arch5"
"clz%?\\t%0, %1"
[(set_attr "predicable" "yes")
+ (set_attr "predicable_short_it" "no")
(set_attr "type" "clz")])
(define_insn "rbitsi2"
@@ -10670,6 +10671,7 @@
"TARGET_32BIT && arm_arch_thumb2"
"rbit%?\\t%0, %1"
[(set_attr "predicable" "yes")
+ (set_attr "predicable_short_it" "no")
(set_attr "type" "clz")])
(define_expand "ctzsi2"
@@ -10829,6 +10831,8 @@
rev%?\t%0, %1"
[(set_attr "arch" "t1,t2,32")
(set_attr "length" "2,2,4")
+ (set_attr "predicable" "no,yes,yes")
+ (set_attr "predicable_short_it" "no")
(set_attr "type" "rev")]
)