From: Richard Sandiford Date: Wed, 14 Sep 2011 21:18:09 +0000 (+0000) Subject: sparc.md: Use match_test rather than eq/ne symbol_ref throughout file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe0aee6ca023fde313998a497a8a65c301e923c2;p=gcc.git sparc.md: Use match_test rather than eq/ne symbol_ref throughout file. gcc/ * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178869 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a68c928fd9..dc1245e6582 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-09-14 Richard Sandiford + + * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref + throughout file. + 2011-09-14 Richard Sandiford * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index 721db934a36..54cf62054f2 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -218,10 +218,10 @@ (eq_attr "branch_type" "fcc") (if_then_else (match_operand 0 "fcc0_register_operand" "") (if_then_else (eq_attr "empty_delay_slot" "true") - (if_then_else (eq (symbol_ref "TARGET_V9") (const_int 0)) + (if_then_else (not (match_test "TARGET_V9")) (const_int 3) (const_int 2)) - (if_then_else (eq (symbol_ref "TARGET_V9") (const_int 0)) + (if_then_else (not (match_test "TARGET_V9")) (const_int 2) (const_int 1))) (if_then_else (lt (pc) (match_dup 2))