summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/predicates.md
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-23 17:39:59 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-23 17:39:59 +0000
commit386367fa4827ceac357595e178d56f55ed27e898 (patch)
treec453d587e3dcaaf45e4a56b9f0f8eb38032b5356 /gcc/config/rs6000/predicates.md
parent5e27a6b69d6c9c047879e4fb1f24e751dd15b388 (diff)
downloadgcc-386367fa4827ceac357595e178d56f55ed27e898.tar.gz
2005-08-23 Paolo Bonzini <bonzini@gnu.org>
* config/rs6000/predicates.md (equality_operator): New. * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for comparison with a large constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103405 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/predicates.md')
-rw-r--r--gcc/config/rs6000/predicates.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md
index 122ec45e856..3b5ef34a41b 100644
--- a/gcc/config/rs6000/predicates.md
+++ b/gcc/config/rs6000/predicates.md
@@ -710,6 +710,10 @@
(define_predicate "boolean_or_operator"
(match_code "ior,xor"))
+;; Return true if operand is an equality operator.
+(define_special_predicate "equality_operator"
+ (match_code "eq,ne"))
+
;; Return true if operand is MIN or MAX operator.
(define_predicate "min_max_operator"
(match_code "smin,smax,umin,umax"))