Commit a1aa2599 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/81121 (ICE: in extract_insn, at recog.c:2311)

	PR target/81121
	* config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
	splitter): Require TARGET_SSE2 in the condition.

	* gcc.target/i386/pr81121.c: New test.

From-SVN: r249396
parent 16122c22
2017-06-20 Jakub Jelinek <jakub@redhat.com>
PR target/81121
* config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
splitter): Require TARGET_SSE2 in the condition.
2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/79799
......
......@@ -5290,7 +5290,8 @@
(define_split
[(set (match_operand:MODEF 0 "sse_reg_operand")
(float:MODEF (match_operand:SI 1 "nonimmediate_operand")))]
"TARGET_USE_VECTOR_CONVERTS
"TARGET_SSE2
&& TARGET_USE_VECTOR_CONVERTS
&& optimize_function_for_speed_p (cfun)
&& reload_completed
&& (MEM_P (operands[1]) || TARGET_INTER_UNIT_MOVES_TO_VEC)
......
2017-06-20 Jakub Jelinek <jakub@redhat.com>
PR target/81121
* gcc.target/i386/pr81121.c: New test.
2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/79799
......
/* PR target/81121 */
/* { dg-do compile } */
/* { dg-options "-O0 -march=amdfam10 -mno-sse2" } */
void
foo (short *x, short *y)
{
float a = 0;
y[0] = x[0] * a;
}
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