]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bfin.md: Use match_test rather than eq/ne symbol_ref throughout file.
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 14 Sep 2011 21:15:09 +0000 (21:15 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 14 Sep 2011 21:15:09 +0000 (21:15 +0000)
gcc/
* config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
throughout file.

From-SVN: r178864

gcc/ChangeLog
gcc/config/bfin/bfin.md

index 384245996248fde5317544b04e223edf940336d6..cc07474fd30ad8d7f0a03ba00b5057ea1dd4a39c 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
+       throughout file.
+
 2011-09-14  Tom de Vries  <tom@codesourcery.com>
 
        PR middle-end/50251
index 9c8d4c26d3e88b743db11d29999ea90ea77bc9d2..1774d3adff668c124239b849b394c669bf3cf028 100644 (file)
 
 (define_insn_reservation "dsp32shiftimm" 1
   (and (eq_attr "type" "dsp32shiftimm")
-       (eq (symbol_ref "ENABLE_WA_05000074")
-          (const_int 0)))
+       (not (match_test "ENABLE_WA_05000074")))
   "slot0")
 
 (define_insn_reservation "dsp32shiftimm_anomaly_05000074" 1
   (and (eq_attr "type" "dsp32shiftimm")
-       (ne (symbol_ref "ENABLE_WA_05000074")
-          (const_int 0)))
+       (match_test "ENABLE_WA_05000074"))
   "slot0+anomaly_05000074")
 
 (define_insn_reservation "load32" 1
            (and (eq_attr "type" "mcst")
                 (ior (eq_attr "addrtype" "preg")
                      (eq_attr "addrtype" "spreg"))))
-       (ior (eq (symbol_ref "ENABLE_WA_05000074")
-               (const_int 0))
+       (ior (not (match_test "ENABLE_WA_05000074"))
            (eq_attr "storereg" "other")))
   "slot1+pregs+store")
 
            (and (eq_attr "type" "mcst")
                 (ior (eq_attr "addrtype" "preg")
                      (eq_attr "addrtype" "spreg"))))
-       (and (ne (symbol_ref "ENABLE_WA_05000074")
-               (const_int 0))
+       (and (match_test "ENABLE_WA_05000074")
            (eq_attr "storereg" "preg")))
   "slot1+anomaly_05000074+pregs+store")
 
 (define_insn_reservation "storei" 1
   (and (and (not (eq_attr "seq_insns" "multi"))
            (and (eq_attr "type" "mcst") (eq_attr "addrtype" "ireg")))
-       (ior (eq (symbol_ref "ENABLE_WA_05000074")
-               (const_int 0))
+       (ior (not (match_test "ENABLE_WA_05000074"))
            (eq_attr "storereg" "other")))
   "(slot1|slot2)+store")
 
 (define_insn_reservation "storei_anomaly_05000074" 1
   (and (and (not (eq_attr "seq_insns" "multi"))
            (and (eq_attr "type" "mcst") (eq_attr "addrtype" "ireg")))
-       (and (ne (symbol_ref "ENABLE_WA_05000074")
-               (const_int 0))
+       (and (match_test "ENABLE_WA_05000074")
            (eq_attr "storereg" "preg")))
   "((slot1+anomaly_05000074)|slot2)+store")