diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-07-20 18:38:50 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-07-20 18:38:50 +0000 |
commit | 97c56ee3a376f6873a7269b6787252c4a5a66c16 (patch) | |
tree | c839fef593c6f1208d4da7a5fca4536ef5ccbb6c /gcc | |
parent | 68f7159da9fe1435fb7ccfcbd7227dcb20f3ac90 (diff) | |
download | gcc-97c56ee3a376f6873a7269b6787252c4a5a66c16.zip gcc-97c56ee3a376f6873a7269b6787252c4a5a66c16.tar.gz gcc-97c56ee3a376f6873a7269b6787252c4a5a66c16.tar.bz2 |
rs6000.md (abs<mode>2_isel, [...]): Reverse sense of if_then_else condition.
* config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
Reverse sense of if_then_else condition.
From-SVN: r162346
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 bf46390..5958166 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 0966915..21287c9 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" |