From 103b29f7cf2ed38d5173c8ac827bfd323fc777b9 Mon Sep 17 00:00:00 2001 From: meissner Date: Fri, 26 Jun 1998 19:56:30 +0000 Subject: [PATCH] Fix ne 0 optimization on non-power machines git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20744 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/rs6000.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85e96dd0df4..b5f47d5f303 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +1998-06-26 Michael Meissner + + * rs6000.md (ne 0, non power case): Add missing & constraint. + Fri Jun 26 17:36:42 1998 Dave Love * 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 05ee92f9efa..327d3070832 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"))] -- 2.11.4.GIT