aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-07-07 10:26:18 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2005-07-07 10:26:18 +0200
commit41f12ed0a94c98482e4f7fe97d2be03db8faaa77 (patch)
tree383e98f91130e4932ca623cb8a60c6edd010b114
parentbc192c773e80f27c8b5a63e8513db9989e2ee545 (diff)
downloadgcc-41f12ed0a94c98482e4f7fe97d2be03db8faaa77.zip
gcc-41f12ed0a94c98482e4f7fe97d2be03db8faaa77.tar.gz
gcc-41f12ed0a94c98482e4f7fe97d2be03db8faaa77.tar.bz2
sparc.md (stack_protect_testsi): Put clobbers after all sets in the pattern.
* config/sparc/sparc.md (stack_protect_testsi): Put clobbers after all sets in the pattern. * config/rs6000/rs6000.md (stack_protect_testsi, stack_protect_testdi): Likewise. From-SVN: r101690
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/rs6000.md8
-rw-r--r--gcc/config/sparc/sparc.md4
3 files changed, 13 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 13ddd5c..e13a1fa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2005-07-07 Jakub Jelinek <jakub@redhat.com>
+
+ * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
+ all sets in the pattern.
+ * config/rs6000/rs6000.md (stack_protect_testsi,
+ stack_protect_testdi): Likewise.
+
2005-07-06 Jeff Law <law@redhat.com>
* tree-vrp.c (simplify_using_ranges): Kill.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 3f5c1b4..f363a96 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -10818,8 +10818,8 @@
(unspec:CCEQ [(match_operand:SI 1 "memory_operand" "m,m")
(match_operand:SI 2 "memory_operand" "m,m")]
UNSPEC_SP_TEST))
- (clobber (match_scratch:SI 3 "=&r,&r"))
- (set (match_scratch:SI 4 "=r,r") (const_int 0))]
+ (set (match_scratch:SI 4 "=r,r") (const_int 0))
+ (clobber (match_scratch:SI 3 "=&r,&r"))]
"TARGET_32BIT"
"@
{l%U1%X1|lwz%U1%X1} %3,%1\;{l%U2%X2|lwz%U2%X2} %4,%2\;xor. %3,%3,%4\;{lil|li} %4,0
@@ -10831,8 +10831,8 @@
(unspec:CCEQ [(match_operand:DI 1 "memory_operand" "m,m")
(match_operand:DI 2 "memory_operand" "m,m")]
UNSPEC_SP_TEST))
- (clobber (match_scratch:DI 3 "=&r,&r"))
- (set (match_scratch:DI 4 "=r,r") (const_int 0))]
+ (set (match_scratch:DI 4 "=r,r") (const_int 0))
+ (clobber (match_scratch:DI 3 "=&r,&r"))]
"TARGET_64BIT"
"@
ld%U1%X1 %3,%1\;ld%U2%X2 %4,%2\;xor. %3,%3,%4\;{lil|li} %4,0
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
index ee601d0..db03488 100644
--- a/gcc/config/sparc/sparc.md
+++ b/gcc/config/sparc/sparc.md
@@ -8229,8 +8229,8 @@
(unspec:CC [(match_operand:SI 0 "memory_operand" "m")
(match_operand:SI 1 "memory_operand" "m")]
UNSPEC_SP_TEST))
- (clobber (match_scratch:SI 2 "=&r"))
- (set (match_scratch:SI 3 "=r") (const_int 0))]
+ (set (match_scratch:SI 3 "=r") (const_int 0))
+ (clobber (match_scratch:SI 2 "=&r"))]
"TARGET_ARCH32"
"ld\t%0, %2\;ld\t%1, %3\;xorcc\t%2, %3, %2\;mov\t0, %3"
[(set_attr "type" "multi")