aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1992-09-30 12:08:44 -0700
committerJim Wilson <wilson@gcc.gnu.org>1992-09-30 12:08:44 -0700
commit1a1ba90ec38eaad0139de70157346af9008bf11d (patch)
treeaf73c907a7252fd0d429b859bb9fcf045677b93f
parentb3fab01d5ebf0c9bf083de1f0fd79edb004af410 (diff)
downloadgcc-1a1ba90ec38eaad0139de70157346af9008bf11d.zip
gcc-1a1ba90ec38eaad0139de70157346af9008bf11d.tar.gz
gcc-1a1ba90ec38eaad0139de70157346af9008bf11d.tar.bz2
(orcc peephole): Don't accept FP reg for operand 0.
From-SVN: r2285
-rw-r--r--gcc/config/sparc/sparc.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
index e516fd6..0245477 100644
--- a/gcc/config/sparc/sparc.md
+++ b/gcc/config/sparc/sparc.md
@@ -2945,7 +2945,7 @@
"std %3,%2")
;; Optimize the case of following a reg-reg move with a test
-;; of reg just moved. Don't allow floating point regs for operand 1.
+;; of reg just moved. Don't allow floating point regs for operand 0 or 1.
;; This can result from a float to fix conversion.
(define_peephole
@@ -2956,7 +2956,7 @@
(const_int 0)))]
"(rtx_equal_p (operands[2], operands[0])
|| rtx_equal_p (operands[2], operands[1]))
- && ! FP_REG_P (operands[1])"
+ && ! FP_REG_P (operands[0]) && ! FP_REG_P (operands[1])"
"orcc %1,%%g0,%0")
;; Do {sign,zero}-extended compares somewhat more efficiently.