[Bug target/69551] [4.9/5/6 Regression] Wrong code with single element vector insert

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jan 29 12:12:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69551

--- Comment #6 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #5)
> So
> --- gcc/config/i386/i386.c.jj	2016-01-28 15:07:25.000000000 +0100
> +++ gcc/config/i386/i386.c	2016-01-29 13:02:32.100788474 +0100
> @@ -46744,6 +46744,7 @@ ix86_expand_vector_set (bool mmx_ok, rtx
>  	{
>  	  /* For SSE1, we have to reuse the V4SF code.  */
>  	  rtx t = gen_reg_rtx (V4SFmode);
> +	  emit_move_insn (t, gen_lowpart (V4SFmode, target));
>  	  ix86_expand_vector_set (false, t, gen_lowpart (SFmode, val), elt);
>  	  emit_move_insn (target, gen_lowpart (mode, t));
>  	}
> ?

Yep. Pre-approved everywhere, if you want to continue with the patch.


More information about the Gcc-bugs mailing list