Commit f0cac80b by Uros Bizjak Committed by Uros Bizjak

i386.c (ix86_binary_operator_ok): Use satisfies_constraint_L.

	* config/i386/i386.c (ix86_binary_operator_ok): Use
	satisfies_constraint_L.

From-SVN: r177928
parent 198cb166
2011-08-20 Uros Bizjak <ubizjak@gmail.com> 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_binary_operator_ok): Use
satisfies_constraint_L.
2011-08-20 Uros Bizjak <ubizjak@gmail.com>
Michael Matz <matz@suse.de> Michael Matz <matz@suse.de>
* config/i386/i386.c (ix86_expand_round_sse4): Expand as * config/i386/i386.c (ix86_expand_round_sse4): Expand as
......
...@@ -15787,16 +15787,12 @@ ix86_binary_operator_ok (enum rtx_code code, enum machine_mode mode, ...@@ -15787,16 +15787,12 @@ ix86_binary_operator_ok (enum rtx_code code, enum machine_mode mode,
/* Source 1 cannot be a non-matching memory. */ /* Source 1 cannot be a non-matching memory. */
if (MEM_P (src1) && !rtx_equal_p (dst, src1)) if (MEM_P (src1) && !rtx_equal_p (dst, src1))
{ /* Support "andhi/andsi/anddi" as a zero-extending move. */
/* Support "andhi/andsi/anddi" as a zero-extending move. */ return (code == AND
return (code == AND && (mode == HImode
&& (mode == HImode || mode == SImode
|| mode == SImode || (TARGET_64BIT && mode == DImode))
|| (TARGET_64BIT && mode == DImode)) && satisfies_constraint_L (src2));
&& CONST_INT_P (src2)
&& (INTVAL (src2) == 0xff
|| INTVAL (src2) == 0xffff));
}
return true; return true;
} }
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