[cfe-commits] shufpd patch
Mon P Wang
wangmp at apple.com
Wed Jul 16 22:44:07 PDT 2008
Hi,
It looks like we are missing support for the builtin shufpd.
-- 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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20080716/7f6358b0/attachment.html>
More information about the cfe-commits
mailing list