diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-20 18:38:50 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-20 18:38:50 +0000 |
commit | 6b7bd9da4b20ae8e01baf350a0411388ebfa4ad2 (patch) | |
tree | c839fef593c6f1208d4da7a5fca4536ef5ccbb6c /gcc | |
parent | 59a72b363d23516c2f343d2a4f7a50a13d14e406 (diff) | |
download | gcc-6b7bd9da4b20ae8e01baf350a0411388ebfa4ad2.tar.gz |
* config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
Reverse sense of if_then_else condition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162346 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf463904a3f..5958166e6c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2010-07-20 Nathan Froyd <froydnj@codesourcery.com> + * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel): + Reverse sense of if_then_else condition. + +2010-07-20 Nathan Froyd <froydnj@codesourcery.com> + * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option. * config/rs6000/rs6000.c (rs6000_override_options): Set rs6000_block_move_inline_limit appropriately. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 09669159c77..21287c9e298 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -2105,10 +2105,10 @@ (compare:CC (match_dup 1) (const_int 0))) (set (match_dup 0) - (if_then_else:GPR (ge (match_dup 3) + (if_then_else:GPR (lt (match_dup 3) (const_int 0)) - (match_dup 1) - (match_dup 2)))] + (match_dup 2) + (match_dup 1)))] "") (define_insn_and_split "nabs<mode>2_isel" @@ -2124,10 +2124,10 @@ (compare:CC (match_dup 1) (const_int 0))) (set (match_dup 0) - (if_then_else:GPR (ge (match_dup 3) + (if_then_else:GPR (lt (match_dup 3) (const_int 0)) - (match_dup 2) - (match_dup 1)))] + (match_dup 1) + (match_dup 2)))] "") (define_insn_and_split "abssi2_nopower" |