aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@cygnus.com>1998-06-26 19:56:30 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1998-06-26 19:56:30 +0000
commitb4e956935df09b8ec8eebec571edc6bad139e2ae (patch)
treedf3764599e42a16d6086451b08f8c73c7805875f /gcc
parentd3ee8d686062a9eb4bb94ec326cd58956c1786e2 (diff)
downloadgcc-b4e956935df09b8ec8eebec571edc6bad139e2ae.zip
gcc-b4e956935df09b8ec8eebec571edc6bad139e2ae.tar.gz
gcc-b4e956935df09b8ec8eebec571edc6bad139e2ae.tar.bz2
Fix ne 0 optimization on non-power machines
From-SVN: r20744
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/rs6000.md2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 85e96dd..b5f47d5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+1998-06-26 Michael Meissner <meissner@cygnus.com>
+
+ * rs6000.md (ne 0, non power case): Add missing & constraint.
+
Fri Jun 26 17:36:42 1998 Dave Love <d.love@dl.ac.uk>
* Makefile.in (install-info): Run install-info program in separate
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 05ee92f..327d307 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -8718,7 +8718,7 @@
;; Simplify (ne X (const_int 0)) on the PowerPC. No need to on the Power,
;; since it nabs/sr is just as fast.
(define_insn ""
- [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
+ [(set (match_operand:SI 0 "gpc_reg_operand" "=&r")
(lshiftrt:SI (neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r")))
(const_int 31)))
(clobber (match_scratch:SI 2 "=&r"))]