diff options
| author | Craig Topper <craig.topper@gmail.com> | 2015-02-13 07:42:15 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2015-02-13 07:42:15 +0000 |
| commit | e32546dd2988d9f2141da758725a55101201895c (patch) | |
| tree | 8145897add55869187f294b0e7177d9cb4cd2ce9 | |
| parent | a952c49c2047c2506d7b313cbeff82843c775f7e (diff) | |
| download | bcm5719-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.cpp | 4 |
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"); |

