summaryrefslogtreecommitdiff
path: root/gcc/config/m32c/predicates.md
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-10 19:37:20 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-10 19:37:20 +0000
commitb34423598600c34d80b9947dde7e450205dcef30 (patch)
treefc77333c8328550fd03b66f40c0eb66ca526c51c /gcc/config/m32c/predicates.md
parentf7ca552b7b168654fe7167d93b70dfe839cbb4e8 (diff)
downloadgcc-b34423598600c34d80b9947dde7e450205dcef30.tar.gz
* config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add ImB
constraint for single-bit-clear in lower byte of HI constant, vs Imb which just ignores the upper byte. * config/m32c/predicates.md (m32c_1mask8_operand): Use it. * config/m32c/bitops.md (andhi3_16, andhi3_24): Use it. (iorhi3_16): Check for single bit set, not single bit clear. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141747 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m32c/predicates.md')
-rw-r--r--gcc/config/m32c/predicates.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/m32c/predicates.md b/gcc/config/m32c/predicates.md
index 5d1b8428497..1a2ff4b4fe8 100644
--- a/gcc/config/m32c/predicates.md
+++ b/gcc/config/m32c/predicates.md
@@ -284,7 +284,7 @@
(define_predicate "m32c_1mask8_operand"
(and (match_operand 0 "const_int_operand")
- (match_test "m32c_const_ok_for_constraint_p(INTVAL(op), 'I', \"Imb\")")))
+ (match_test "m32c_const_ok_for_constraint_p(INTVAL(op), 'I', \"ImB\")")))
(define_predicate "m32c_1mask16_operand"
(and (match_operand 0 "const_int_operand")