summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-02-13 07:42:15 +0000
committerCraig Topper <craig.topper@gmail.com>2015-02-13 07:42:15 +0000
commite32546dd2988d9f2141da758725a55101201895c (patch)
tree8145897add55869187f294b0e7177d9cb4cd2ce9
parenta952c49c2047c2506d7b313cbeff82843c775f7e (diff)
downloadbcm5719-llvm-e32546dd2988d9f2141da758725a55101201895c.tar.gz
bcm5719-llvm-e32546dd2988d9f2141da758725a55101201895c.zip
[X86] Fix XOP vpcom intrinsic autoupgrade to map 'true' and 'false' to the correct immediates. Seems they were swapped.
llvm-svn: 229077
-rw-r--r--llvm/lib/IR/AutoUpgrade.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp
index 6d53d11988f..0c494ef12e4 100644
--- a/llvm/lib/IR/AutoUpgrade.cpp
+++ b/llvm/lib/IR/AutoUpgrade.cpp
@@ -460,9 +460,9 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
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");
OpenPOWER on IntegriCloud