Skip to content
Snippets Groups Projects
Commit fa4907d6 authored by Craig Topper's avatar Craig Topper
Browse files

[X86] Fix bad operand lookup for cmov introduced in r349315

The CC is operand 2 not operand 3.

llvm-svn: 349330
parent c68ce89a
No related branches found
No related tags found
No related merge requests found
...@@ -39933,7 +39933,7 @@ static bool needCarryOrOverflowFlag(SDValue Flags) { ...@@ -39933,7 +39933,7 @@ static bool needCarryOrOverflowFlag(SDValue Flags) {
CC = (X86::CondCode)User->getConstantOperandVal(2); CC = (X86::CondCode)User->getConstantOperandVal(2);
break; break;
case X86ISD::CMOV: case X86ISD::CMOV:
CC = (X86::CondCode)User->getConstantOperandVal(3); CC = (X86::CondCode)User->getConstantOperandVal(2);
break; break;
} }
   
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment