diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2011-09-14 21:16:45 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2011-09-14 21:16:45 +0000 |
commit | 26b996c6aec1b3e8521ed28721de1655f0fd40ff (patch) | |
tree | 33711997df8da81c45e536b4ff2eca74594e366b | |
parent | 5cf6e736b8fabf7f92fb974e381eaa3dc2daa127 (diff) | |
download | gcc-26b996c6aec1b3e8521ed28721de1655f0fd40ff.zip gcc-26b996c6aec1b3e8521ed28721de1655f0fd40ff.tar.gz gcc-26b996c6aec1b3e8521ed28721de1655f0fd40ff.tar.bz2 |
rs6000.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
* config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
throughout file.
* config/rs6000/constraints.md: Likewise.
From-SVN: r178866
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/constraints.md | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 10 |
3 files changed, 12 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c30ec15..c3888e5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com> + * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref + throughout file. + * config/rs6000/constraints.md: Likewise. + +2011-09-14 Richard Sandiford <rdsandiford@googlemail.com> + * config/microblaze/microblaze.md: Use match_test rather than eq/ne symbol_ref throughout file. diff --git a/gcc/config/rs6000/constraints.md b/gcc/config/rs6000/constraints.md index 71b3b20..ef80595f 100644 --- a/gcc/config/rs6000/constraints.md +++ b/gcc/config/rs6000/constraints.md @@ -198,4 +198,4 @@ usually better to use @samp{m} or @samp{es} in @code{asm} statements)" (define_constraint "j" "Zero vector constant" - (match_test "(op == const0_rtx || op == CONST0_RTX (GET_MODE (op)))")) + (match_test "op == const0_rtx || op == CONST0_RTX (GET_MODE (op))")) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 288f291..818456f 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -9429,7 +9429,7 @@ (const_string "load") (eq_attr "alternative" "12") (const_string "store") - (ne (symbol_ref "TARGET_MFCRF") (const_int 0)) + (match_test "TARGET_MFCRF") (const_string "mfcrf") ] (const_string "mfcr"))) @@ -10323,7 +10323,7 @@ } }" [(set_attr "type" "store_ux,store_ux,*,load_ux,load_ux,*") - (set (attr "cell_micro") (if_then_else (eq (symbol_ref "TARGET_STRING") (const_int 1)) + (set (attr "cell_micro") (if_then_else (match_test "TARGET_STRING") (const_string "always") (const_string "conditional")))]) @@ -13449,7 +13449,7 @@ "" "mfcr %0%Q2\;{rlinm|rlwinm} %0,%0,%J1,1" [(set (attr "type") - (cond [(ne (symbol_ref "TARGET_MFCRF") (const_int 0)) + (cond [(match_test "TARGET_MFCRF") (const_string "mfcrf") ] (const_string "mfcr"))) @@ -13481,7 +13481,7 @@ "TARGET_POWERPC64" "mfcr %0%Q2\;{rlinm|rlwinm} %0,%0,%J1,1" [(set (attr "type") - (cond [(ne (symbol_ref "TARGET_MFCRF") (const_int 0)) + (cond [(match_test "TARGET_MFCRF") (const_string "mfcrf") ] (const_string "mfcr"))) @@ -13542,7 +13542,7 @@ return \"mfcr %0%Q2\;{rlinm|rlwinm} %0,%0,%4,%5,%5\"; }" [(set (attr "type") - (cond [(ne (symbol_ref "TARGET_MFCRF") (const_int 0)) + (cond [(match_test "TARGET_MFCRF") (const_string "mfcrf") ] (const_string "mfcr"))) |