aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2011-09-14 21:18:09 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2011-09-14 21:18:09 +0000
commitfe0aee6ca023fde313998a497a8a65c301e923c2 (patch)
tree2cddbbff11c87e97d7b81c8cee0b4f71cad29dab
parent68ed2b9cb99a67587d4be07205fc644befe8cac1 (diff)
downloadgcc-fe0aee6ca023fde313998a497a8a65c301e923c2.zip
gcc-fe0aee6ca023fde313998a497a8a65c301e923c2.tar.gz
gcc-fe0aee6ca023fde313998a497a8a65c301e923c2.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/sparc.md4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3a68c92..dc1245e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
+ * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
+ throughout file.
+
+2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
+
* config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
throughout file.
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
index 721db93..54cf620 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))