summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-04-03 19:58:06 +0000
committerNate Begeman <natebegeman@mac.com>2008-04-03 19:58:06 +0000
commit11b6bb408ef80ab51ef5c2d40980b3eeb7e460b7 (patch)
treebe727df3db153cf54b9b8643fe548df83c999479 /clang/lib/CodeGen
parentd068813464408b632a154fda152b406c75f1767e (diff)
downloadbcm5719-llvm-11b6bb408ef80ab51ef5c2d40980b3eeb7e460b7.tar.gz
bcm5719-llvm-11b6bb408ef80ab51ef5c2d40980b3eeb7e460b7.zip
Teach clang how to codegen punpcklbw and punpcklwd
llvm-svn: 49186
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 83c5e60475c..e26fb016872 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -475,6 +475,13 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,
i & 0x3, (i & 0xc) >> 2,
((i & 0x30) >> 4) + 4,
((i & 0x60) >> 6) + 4, "shufps");
+ 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,
+ "punpcklbw");
+ case X86::BI__builtin_ia32_punpcklwd128:
+ return EmitShuffleVector(Ops[0], Ops[1], 0, 8, 1, 9, 2, 10, 3, 11,
+ "punpcklwd");
}
}
OpenPOWER on IntegriCloud