Commit e4b02155 by Uros Bizjak Committed by Uros Bizjak

i386.c (ix86_check_avx_upper_register): Return true for all SSE registers with mode bitsize > 128.

	* config/i386/i386.c (ix86_check_avx_upper_register):
	Return true for all SSE registers with mode bitsize > 128.

From-SVN: r266389
parent 69a69df1
2018-11-22 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_check_avx_upper_register):
Return true for all SSE registers with mode bitsize > 128.
2018-11-22 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/87718
......@@ -18856,12 +18856,7 @@ ix86_dirflag_mode_needed (rtx_insn *insn)
static bool
ix86_check_avx_upper_register (const_rtx exp)
{
if (SUBREG_P (exp))
exp = SUBREG_REG (exp);
return (REG_P (exp)
&& (VALID_AVX256_REG_OR_OI_MODE (GET_MODE (exp))
|| VALID_AVX512F_REG_OR_XI_MODE (GET_MODE (exp))));
return SSE_REG_P (exp) && GET_MODE_BITSIZE (GET_MODE (exp)) > 128;
}
/* Return needed mode for entity in optimize_mode_switching pass. */
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