From: Craig Topper Date: Fri, 13 Feb 2015 07:42:15 +0000 (+0000) Subject: [X86] Fix XOP vpcom intrinsic autoupgrade to map 'true' and 'false' to the correct... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0d3c686ffdac7bbb4cdba2c515ac3bf2255b8476;p=oota-llvm.git [X86] Fix XOP vpcom intrinsic autoupgrade to map 'true' and 'false' to the correct immediates. Seems they were swapped. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229077 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/AutoUpgrade.cpp b/lib/IR/AutoUpgrade.cpp index 6d53d11988f..0c494ef12e4 100644 --- a/lib/IR/AutoUpgrade.cpp +++ b/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");