Commit 463b558b by Michael Meissner Committed by Michael Meissner

Add some insn names for (neg (abs)) code

From-SVN: r20745
parent b4e95693
1998-06-26 Michael Meissner <meissner@cygnus.com> 1998-06-26 Michael Meissner <meissner@cygnus.com>
* rs6000.md (ne 0, non power case): Add missing & constraint. * 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> Fri Jun 26 17:36:42 1998 Dave Love <d.love@dl.ac.uk>
......
...@@ -1214,13 +1214,13 @@ ...@@ -1214,13 +1214,13 @@
(set (match_dup 0) (minus:SI (match_dup 0) (match_dup 2)))] (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") [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
(neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r"))))] (neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r"))))]
"TARGET_POWER" "TARGET_POWER"
"nabs %0,%1") "nabs %0,%1")
(define_insn "" (define_insn "*nabs_no_power"
[(set (match_operand:SI 0 "gpc_reg_operand" "=&r,r") [(set (match_operand:SI 0 "gpc_reg_operand" "=&r,r")
(neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0")))) (neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0"))))
(clobber (match_scratch:SI 2 "=&r,&r"))] (clobber (match_scratch:SI 2 "=&r,&r"))]
...@@ -8717,7 +8717,7 @@ ...@@ -8717,7 +8717,7 @@
;; Simplify (ne X (const_int 0)) on the PowerPC. No need to on the Power, ;; Simplify (ne X (const_int 0)) on the PowerPC. No need to on the Power,
;; since it nabs/sr is just as fast. ;; since it nabs/sr is just as fast.
(define_insn "" (define_insn "*ne0"
[(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"))) (lshiftrt:SI (neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r")))
(const_int 31))) (const_int 31)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment