[llvm] r229077 - [X86] Fix XOP vpcom intrinsic autoupgrade to map 'true' and 'false' to the correct immediates. Seems they were swapped.
Craig Topper
craig.topper at gmail.com
Thu Feb 12 23:42:16 PST 2015
Author: ctopper
Date: Fri Feb 13 01:42:15 2015
New Revision: 229077
URL: http://llvm.org/viewvc/llvm-project?rev=229077&view=rev
Log:
[X86] Fix XOP vpcom intrinsic autoupgrade to map 'true' and 'false' to the correct immediates. Seems they were swapped.
Modified:
llvm/trunk/lib/IR/AutoUpgrade.cpp
Modified: llvm/trunk/lib/IR/AutoUpgrade.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AutoUpgrade.cpp?rev=229077&r1=229076&r2=229077&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AutoUpgrade.cpp (original)
+++ llvm/trunk/lib/IR/AutoUpgrade.cpp Fri Feb 13 01:42:15 2015
@@ -460,9 +460,9 @@ void llvm::UpgradeIntrinsicCall(CallInst
Imm = 4;
else if (Name.startswith("ne"))
Imm = 5;
- else if (Name.startswith("true"))
- Imm = 6;
else if (Name.startswith("false"))
+ Imm = 6;
+ else if (Name.startswith("true"))
Imm = 7;
else
llvm_unreachable("Unknown condition");
More information about the llvm-commits
mailing list