Fix ne 0 optimization on non-power machines
authorMichael Meissner <meissner@cygnus.com>
Fri, 26 Jun 1998 19:56:30 +0000 (19:56 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 26 Jun 1998 19:56:30 +0000 (19:56 +0000)
From-SVN: r20744

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 85e96dd0df4e156e53278cbf9a8b2675786a653a..b5f47d5f3036dfc885cd7464ecd3ea2907b02ad1 100644 (file)
@@ -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
index 05ee92f9efac17555785d0fd5ea8c7c8c4d4ead3..327d3070832016c94ded0d956d543e0d7c99f1d4 100644 (file)
 ;; 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"))]