This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/43175] __builtin_ia32_vec_perm_v4si doesn't work with -msse4.1



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]