sparc.md: Use match_test rather than eq/ne symbol_ref throughout file.
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 14 Sep 2011 21:18:09 +0000 (21:18 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 14 Sep 2011 21:18:09 +0000 (21:18 +0000)
gcc/
* config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
throughout file.

From-SVN: r178869

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

index 3a68c928fd96371f936b77001bcbd8a43d2c424c..dc1245e65823ff2f033dba245057bcc98f59f5ff 100644 (file)
@@ -1,3 +1,8 @@
+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
index 721db934a363e3d98116a3fe788d5b094791516d..54cf62054f2f7018d7dbb017a5f146ec81d3c448 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))