diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2011-09-13 18:17:03 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2011-09-13 18:17:03 +0000 |
commit | 61c4c1504980a97e4689209640fa6be3e9d7f0e3 (patch) | |
tree | e7b9e840e05436d91e301eb61c8c0b6de8c3d6b0 | |
parent | d3c7d136a13d98ec04197d484030e84f1d3dabe5 (diff) | |
download | gcc-61c4c1504980a97e4689209640fa6be3e9d7f0e3.zip gcc-61c4c1504980a97e4689209640fa6be3e9d7f0e3.tar.gz gcc-61c4c1504980a97e4689209640fa6be3e9d7f0e3.tar.bz2 |
v850.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
* config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
throughout file.
From-SVN: r178826
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/v850/v850.md | 18 |
2 files changed, 14 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ab3029..47a09ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com> + * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref + throughout file. + +2011-09-13 Richard Sandiford <rdsandiford@googlemail.com> + * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref throughout file. diff --git a/gcc/config/v850/v850.md b/gcc/config/v850/v850.md index cae929d..6fdac70 100644 --- a/gcc/config/v850/v850.md +++ b/gcc/config/v850/v850.md @@ -61,15 +61,15 @@ (const_string "other")) (define_attr "cpu" "none,v850,v850e,v850e1,v850e2,v850e2v3" - (cond [(ne (symbol_ref "TARGET_V850") (const_int 0)) + (cond [(match_test "TARGET_V850") (const_string "v850") - (ne (symbol_ref "TARGET_V850E") (const_int 0)) + (match_test "TARGET_V850E") (const_string "v850e") - (ne (symbol_ref "TARGET_V850E1") (const_int 0)) + (match_test "TARGET_V850E1") (const_string "v850e1") - (ne (symbol_ref "TARGET_V850E2") (const_int 0)) + (match_test "TARGET_V850E2") (const_string "v850e2") - (ne (symbol_ref "TARGET_V850E2") (const_int 0)) + (match_test "TARGET_V850E2") (const_string "v850e2v3")] (const_string "none"))) @@ -2460,7 +2460,7 @@ } }" [(set (attr "length") - (if_then_else (ne (symbol_ref "TARGET_LONG_CALLS") (const_int 0)) + (if_then_else (match_test "TARGET_LONG_CALLS") (const_int 10) (const_int 34))) (set_attr "cc" "clobber")]) @@ -2492,7 +2492,7 @@ } }" [(set (attr "length") - (if_then_else (ne (symbol_ref "TARGET_LONG_CALLS") (const_int 0)) + (if_then_else (match_test "TARGET_LONG_CALLS") (const_int 4) (const_int 24))) (set_attr "cc" "clobber")]) @@ -2586,7 +2586,7 @@ return \"\"; }" [(set (attr "length") - (if_then_else (ne (symbol_ref "TARGET_LONG_CALLS") (const_int 0)) + (if_then_else (match_test "TARGET_LONG_CALLS") (const_int 4) (const_int 62) )) @@ -2685,7 +2685,7 @@ return \"\"; }" [(set (attr "length") - (if_then_else (ne (symbol_ref "TARGET_LONG_CALLS") (const_int 0)) + (if_then_else (match_test "TARGET_LONG_CALLS") (const_int 4) (const_int 62) )) |