Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: gcc/gcc/config/iq2000/predicates.md

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/config/iq2000/iq2000-protos.h ('k') | gcc/gcc/config/iq2000/t-iq2000 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/config/iq2000/predicates.md
diff --git a/gcc/gcc/config/iq2000/predicates.md b/gcc/gcc/config/iq2000/predicates.md
index 53471e455adf24bcf2b94f80390dd5e89317e9c4..f275090309b2e517dec61d2020f7b9f4deb6e4a4 100644
--- a/gcc/gcc/config/iq2000/predicates.md
+++ b/gcc/gcc/config/iq2000/predicates.md
@@ -41,6 +41,14 @@
return register_operand (op, mode);
})
+;; Return 1 if OP is a register or a constant. gen_int_relational
+;; takes care of forcing out-of-range constants into a register.
+
+(define_predicate "reg_or_const_operand"
+ (ior (match_code "const_int")
+ (and (match_code "reg,subreg")
+ (match_operand 0 "register_operand"))))
+
;; Return 1 if OP is a integer which fits in 16 bits.
(define_predicate "small_int"
« no previous file with comments | « gcc/gcc/config/iq2000/iq2000-protos.h ('k') | gcc/gcc/config/iq2000/t-iq2000 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698