This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/43175] __builtin_ia32_vec_perm_v4si doesn't work with -msse4.1
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2010 19:55:23 -0000
- Subject: [Bug target/43175] __builtin_ia32_vec_perm_v4si doesn't work with -msse4.1
- References: <bug-43175-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from hjl dot tools at gmail dot com 2010-02-25 19:55 -------
(In reply to comment #10)
> (In reply to comment #9)
> > The testcase will also fail with -msse4.1:
>
> Add this patch (please note that input operands of blend MD patterns are
> *reversed*):
>
> @@ -29153,7 +29153,7 @@ expand_vec_perm_blend (struct expand_vec
> }
>
> /* This matches five different patterns with the different modes. */
> - x = gen_rtx_VEC_MERGE (vmode, op0, op1, GEN_INT (mask));
> + x = gen_rtx_VEC_MERGE (vmode, op1, op0, GEN_INT (mask));
> x = gen_rtx_SET (VOIDmode, target, x);
> emit_insn (x);
>
>
That works. Thanks.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43175