diff options
author | Michael Meissner <meissner@cygnus.com> | 1998-06-26 20:02:47 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1998-06-26 20:02:47 +0000 |
commit | 463b558b823b2894e37e274e21650b5947e736a3 (patch) | |
tree | d399b91b74bedfe5ccaf75aa004e71696d45d933 /gcc | |
parent | b4e956935df09b8ec8eebec571edc6bad139e2ae (diff) | |
download | gcc-463b558b823b2894e37e274e21650b5947e736a3.zip gcc-463b558b823b2894e37e274e21650b5947e736a3.tar.gz gcc-463b558b823b2894e37e274e21650b5947e736a3.tar.bz2 |
Add some insn names for (neg (abs)) code
From-SVN: r20745
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b5f47d5..c08fa65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 327d307..5996128 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -1214,13 +1214,13 @@ (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"))] @@ -8717,7 +8717,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 "" +(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))) |