r334422 - [X86] Fix operand order in the shuffle created for blend builtins.
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 11 10:06:01 PDT 2018
Author: ctopper
Date: Mon Jun 11 10:06:01 2018
New Revision: 334422
URL: http://llvm.org/viewvc/llvm-project?rev=334422&view=rev
Log:
[X86] Fix operand order in the shuffle created for blend builtins.
This was broken when the builtin was added in r334249.
Modified:
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=334422&r1=334421&r2=334422&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Mon Jun 11 10:06:01 2018
@@ -9430,7 +9430,7 @@ Value *CodeGenFunction::EmitX86BuiltinEx
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");
}
More information about the cfe-commits
mailing list