From: Mon P Wang Date: Fri, 18 Jul 2008 00:14:09 +0000 (+0000) Subject: Add support shufpd X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c5df7f54f40090df6032a74e650b8e4d1c96207;p=clang Add support shufpd git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53747 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index 1693cacdac..fb6b0caa3d 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -767,6 +767,10 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID, ((i & 0x30) >> 4) + 4, ((i & 0xc0) >> 6) + 4, "shufps"); } + case X86::BI__builtin_ia32_shufpd: { + unsigned i = cast(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,