[X86] Fix operand order in the shuffle created for blend builtins.
This was broken when the builtin was added in r334249.
llvm-svn: 334422
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 674cb48..9325839 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -9430,7 +9430,7 @@
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");
}