aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pa
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2007-03-13 23:09:08 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2007-03-13 23:09:08 +0000
commitde94a581a9bebb0d6d461271b071a3c21223a7f4 (patch)
tree7e54170eb7f9311057e2938bd6702019684e8c39 /gcc/config/pa
parent5be6cb59b3e5ab7b69534841be42f2d6e9fb1340 (diff)
downloadgcc-de94a581a9bebb0d6d461271b071a3c21223a7f4.zip
gcc-de94a581a9bebb0d6d461271b071a3c21223a7f4.tar.gz
gcc-de94a581a9bebb0d6d461271b071a3c21223a7f4.tar.bz2
pa.md (vdepi_ior): Don't allow zero length deposit.
* pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for two unamed patterns. From-SVN: r122885
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/pa.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md
index 32276f1..5ea2299 100644
--- a/gcc/config/pa/pa.md
+++ b/gcc/config/pa/pa.md
@@ -6974,7 +6974,7 @@
(match_operand:SI 2 "register_operand" "q")))
(match_operand:SI 3 "register_operand" "0")))]
; accept ...0001...1, can this be generalized?
- "exact_log2 (INTVAL (operands[1]) + 1) >= 0"
+ "exact_log2 (INTVAL (operands[1]) + 1) > 0"
"*
{
int x = INTVAL (operands[1]);
@@ -7073,7 +7073,7 @@
(match_operand:DI 2 "register_operand" "q")))
(match_operand:DI 3 "register_operand" "0")))]
; accept ...0001...1, can this be generalized?
- "TARGET_64BIT && exact_log2 (INTVAL (operands[1]) + 1) >= 0"
+ "TARGET_64BIT && exact_log2 (INTVAL (operands[1]) + 1) > 0"
"*
{
int x = INTVAL (operands[1]);
@@ -7269,7 +7269,7 @@
(and:SI (ashift:SI (match_operand:SI 1 "register_operand" "r")
(match_operand:SI 2 "const_int_operand" ""))
(match_operand:SI 3 "const_int_operand" "")))]
- "exact_log2 (1 + (INTVAL (operands[3]) >> (INTVAL (operands[2]) & 31))) >= 0"
+ "exact_log2 (1 + (INTVAL (operands[3]) >> (INTVAL (operands[2]) & 31))) > 0"
"*
{
int cnt = INTVAL (operands[2]) & 31;