[Bug target/43175] __builtin_ia32_vec_perm_v4si doesn't work with AVX
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 25 19:25:00 GMT 2010
------- Comment #8 from hjl dot tools at gmail dot com 2010-02-25 19:25 -------
(In reply to comment #6)
> A blind guess:
>
> Index: i386.c
> ===================================================================
> --- i386.c (revision 157069)
> +++ i386.c (working copy)
> @@ -29144,8 +29144,8 @@ expand_vec_perm_blend (struct expand_vec
> do_subreg:
> vmode = V8HImode;
> target = gen_lowpart (vmode, target);
> - op0 = gen_lowpart (vmode, target);
> - op1 = gen_lowpart (vmode, target);
> + op0 = gen_lowpart (vmode, op0);
> + op1 = gen_lowpart (vmode, op1);
> break;
>
> default:
>
> H.J., can you please try this patch?
>
Doesn't work:
(gdb) p b
$1 = {s = {0, 5, 6, 7}, v = 0x600920}
(gdb) p c
$2 = {s = {4, 1, 2, 3}, v = 0x600930}
(gdb)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43175
More information about the Gcc-bugs
mailing list