aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha/predicates.md
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-25 00:09:36 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-25 00:09:36 +0000
commite31a3157bf637b8299126fc060eec2615586c770 (patch)
tree932086cb04d709b4890bb5f884463c56026ff0fd /gcc/config/alpha/predicates.md
parent3351cef043c126925829c9b414a087251dc67e45 (diff)
alpha: Unify zero_extend patterns with attribute enabled.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171429 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha/predicates.md')
-rw-r--r--gcc/config/alpha/predicates.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/alpha/predicates.md b/gcc/config/alpha/predicates.md
index da76d4f5bfd..e43564dbc34 100644
--- a/gcc/config/alpha/predicates.md
+++ b/gcc/config/alpha/predicates.md
@@ -617,3 +617,9 @@
return false;
return for_each_rtx (&op, some_small_symbolic_operand_int, NULL);
})
+
+;; Accept a register, or a memory if BWX is enabled.
+(define_predicate "reg_or_bwx_memory_operand"
+ (ior (match_operand 0 "register_operand")
+ (and (match_test "TARGET_BWX")
+ (match_operand 0 "memory_operand"))))