Commit 428eae94 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR target/14209 (Bug in cris.md, shrinking access size of postincrement.)

	PR target/14209
	* config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
	constraints to not match postincrement.  Adjust the predicate to
	exclude a volatile memory reference.

From-SVN: r78095
parent a5ee8d80
2004-02-19 Hans-Peter Nilsson <hp@axis.com>
PR target/14209
* config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
constraints to not match postincrement. Adjust the predicate to
exclude a volatile memory reference.
2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
* config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
......
......@@ -2683,9 +2683,10 @@
(define_insn "*andsi_movu"
[(set (match_operand:SI 0 "register_operand" "=r,r,r")
(and:SI (match_operand:SI 1 "nonimmediate_operand" "%r,Q>,m")
(and:SI (match_operand:SI 1 "nonimmediate_operand" "%r,Q,To")
(match_operand:SI 2 "const_int_operand" "n,n,n")))]
"INTVAL (operands[2]) == 255 || INTVAL (operands[2]) == 65535"
"INTVAL (operands[2]) == 255 || INTVAL (operands[2]) == 65535
&& (GET_CODE (operands[1]) != MEM || ! MEM_VOLATILE_P (operands[1]))"
"movu.%z2 %1,%0"
[(set_attr "slottable" "yes,yes,no")])
......@@ -2771,9 +2772,9 @@
(define_insn "*andhi_movu"
[(set (match_operand:HI 0 "register_operand" "=r,r,r")
(and:HI (match_operand:HI 1 "nonimmediate_operand" "r,Q>,m")
(and:HI (match_operand:HI 1 "nonimmediate_operand" "r,Q,To")
(const_int 255)))]
""
"GET_CODE (operands[1]) != MEM || ! MEM_VOLATILE_P (operands[1])"
"mOvu.b %1,%0"
[(set_attr "slottable" "yes,yes,no")])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment