OSDN Git Service

Add some insn names for (neg (abs)) code
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Jun 1998 20:02:47 +0000 (20:02 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Jun 1998 20:02:47 +0000 (20:02 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20745 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b5f47d5..c08fa65 100644 (file)
@@ -1,6 +1,8 @@
 1998-06-26  Michael Meissner  <meissner@cygnus.com>
 
        * rs6000.md (ne 0, non power case): Add missing & constraint.
+       Name pattern ne0.
+       (negative abs insns): Add pattern names.
 
 Fri Jun 26 17:36:42 1998  Dave Love  <d.love@dl.ac.uk>
 
index 327d307..5996128 100644 (file)
    (set (match_dup 0) (minus:SI (match_dup 0) (match_dup 2)))]
   "")
 
-(define_insn ""
+(define_insn "*nabs_power"
   [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
        (neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r"))))]
   "TARGET_POWER"
   "nabs %0,%1")
 
-(define_insn ""
+(define_insn "*nabs_no_power"
   [(set (match_operand:SI 0 "gpc_reg_operand" "=&r,r")
        (neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0"))))
    (clobber (match_scratch:SI 2 "=&r,&r"))]
 
 ;; 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 ""
+(define_insn "*ne0"
   [(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)))