OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Sep 2011 21:18:09 +0000 (21:18 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Sep 2011 21:18:09 +0000 (21:18 +0000)
* config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
throughout file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178869 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sparc.md

index 3a68c92..dc1245e 100644 (file)
@@ -1,5 +1,10 @@
 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
 
+       * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
+       throughout file.
+
+2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
+
        * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
        throughout file.
 
index 721db93..54cf620 100644 (file)
         (eq_attr "branch_type" "fcc")
           (if_then_else (match_operand 0 "fcc0_register_operand" "")
             (if_then_else (eq_attr "empty_delay_slot" "true")
-              (if_then_else (eq (symbol_ref "TARGET_V9") (const_int 0))
+              (if_then_else (not (match_test "TARGET_V9"))
                 (const_int 3)
                 (const_int 2))
-              (if_then_else (eq (symbol_ref "TARGET_V9") (const_int 0))
+              (if_then_else (not (match_test "TARGET_V9"))
                 (const_int 2)
                 (const_int 1)))
             (if_then_else (lt (pc) (match_dup 2))