]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.md (abs<mode>2_isel, [...]): Reverse sense of if_then_else condition.
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 20 Jul 2010 18:38:50 +0000 (18:38 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Tue, 20 Jul 2010 18:38:50 +0000 (18:38 +0000)
* config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
Reverse sense of if_then_else condition.

From-SVN: r162346

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

index bf463904a3fef9ceff0fac48d211c9795d9b417a..5958166e6c59c1485bf2b246bb9549441e8f3b6b 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 09669159c770046b8a281ceb1be609251fcde337..21287c9e298100188ecdfa22ed322065c56178e1 100644 (file)
        (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"
        (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"