diff options
author | Craig Topper <craig.topper@intel.com> | 2018-06-11 17:06:01 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-06-11 17:06:01 +0000 |
commit | 201b9dd3346bf24b0654fe97691a9e80b1b324dd (patch) | |
tree | e946b75733cf8a3f07f10b7699bb306e808ca3d2 | |
parent | 3416773cb170afd5d0136836d230499e29f3cb10 (diff) | |
download | bcm5719-llvm-201b9dd3346bf24b0654fe97691a9e80b1b324dd.tar.gz bcm5719-llvm-201b9dd3346bf24b0654fe97691a9e80b1b324dd.zip |
[X86] Fix operand order in the shuffle created for blend builtins.
This was broken when the builtin was added in r334249.
llvm-svn: 334422
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 674cb487eef..93258397945 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -9430,7 +9430,7 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID, for (unsigned i = 0; i != NumElts; ++i) Indices[i] = ((Imm >> (i % 8)) & 0x1) ? NumElts + i : i; - return Builder.CreateShuffleVector(Ops[1], Ops[0], + return Builder.CreateShuffleVector(Ops[0], Ops[1], makeArrayRef(Indices, NumElts), "blend"); } |