diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2011-09-14 21:15:09 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2011-09-14 21:15:09 +0000 |
commit | dd02d5eff6b9f978929e5ddebe79d913534a40cc (patch) | |
tree | f59a8beaf48bbd25eca6353f0cb6103bbf377737 /gcc | |
parent | 7e5ac0a4f5ac37ed9a6198fd694bc81635c688c6 (diff) | |
download | gcc-dd02d5eff6b9f978929e5ddebe79d913534a40cc.zip gcc-dd02d5eff6b9f978929e5ddebe79d913534a40cc.tar.gz gcc-dd02d5eff6b9f978929e5ddebe79d913534a40cc.tar.bz2 |
bfin.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
* config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
throughout file.
From-SVN: r178864
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.md | 18 |
2 files changed, 11 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3842459..cc07474 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/bfin/bfin.md b/gcc/config/bfin/bfin.md index 9c8d4c2..1774d3a 100644 --- a/gcc/config/bfin/bfin.md +++ b/gcc/config/bfin/bfin.md @@ -237,14 +237,12 @@ (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 @@ -277,8 +275,7 @@ (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") @@ -287,24 +284,21 @@ (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") |