[IQ2000] Use match_test rather than eq/ne symbol_ref
Richard Sandiford
rdsandiford@googlemail.com
Tue Sep 13 17:56:00 GMT 2011
As per the subject. Tested by making sure that there were no new
warnings building iq2000-elf, and that there were no changes in the
assembly output for the C and C++ testsuite. OK to install?
Richard
gcc/
* config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
throughout file.
Index: gcc/config/iq2000/iq2000.md
===================================================================
--- gcc/config/iq2000/iq2000.md 2011-09-13 18:43:40.000000000 +0100
+++ gcc/config/iq2000/iq2000.md 2011-09-13 18:52:13.000000000 +0100
@@ -161,7 +161,7 @@ (define_attr "dslot" "has_dslot,ok_in_ds
(define_attr "branch_likely" "no,yes"
(const
- (if_then_else (ne (symbol_ref "GENERATE_BRANCHLIKELY") (const_int 0))
+ (if_then_else (match_test "GENERATE_BRANCHLIKELY")
(const_string "yes")
(const_string "no"))))
More information about the Gcc-patches
mailing list