summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2008-07-18 00:14:09 +0000
committerMon P Wang <wangmp@apple.com>2008-07-18 00:14:09 +0000
commit194c58f56db68b7491a4da19ec33388cbdce5cad (patch)
treea951be1bfc2048f2d3d729cfbe8a05633f3847cb
parent0ece94384582605f64f5b90e79cfd561f9269c5f (diff)
downloadbcm5719-llvm-194c58f56db68b7491a4da19ec33388cbdce5cad.tar.gz
bcm5719-llvm-194c58f56db68b7491a4da19ec33388cbdce5cad.zip
Add support shufpd
llvm-svn: 53747
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 1693cacdac9..fb6b0caa3d0 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/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<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,
OpenPOWER on IntegriCloud