[cfe-commits] shufpd patch
Chris Lattner
clattner at apple.com
Thu Jul 17 11:29:50 PDT 2008
On Jul 16, 2008, at 10:44 PM, Mon P Wang wrote:
> Hi,
>
> It looks like we are missing support for the builtin shufpd.
Looks good to me,
-Chris
>
> -- Mon Ping
>
>
> Index: lib/CodeGen/CGBuiltin.cpp
> ===================================================================
> --- lib/CodeGen/CGBuiltin.cpp (revision 53714)
> +++ lib/CodeGen/CGBuiltin.cpp (working copy)
> @@ -767,6 +767,10 @@
> ((i & 0x30) >> 4) + 4,
> ((i & 0xc0) >> 6) + 4, "shufps");
> }
> + case X86::BI__builtin_ia32_shufpd: {
> + unsigned i = cast<ConstantInt>(Ops[2])->getZExtValue();
> + return EmitShuffleVector(Ops[0], Ops[1], i & 1, (i & 2) + 2,
> "shufpd");
> + }
> case X86::BI__builtin_ia32_punpcklbw128:
> return EmitShuffleVector(Ops[0], Ops[1], 0, 16, 1, 17, 2, 18,
> 3, 19,
> 4, 20, 5, 21, 6, 22,
> 7, 23,
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20080717/fa9653a3/attachment.html>
More information about the cfe-commits
mailing list