radeon/llvm: Fix operand order of V_CNDMASK in custom inserter
authorTom Stellard <thomas.stellard@amd.com>
Wed, 5 Sep 2012 18:36:21 +0000 (14:36 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 11 Sep 2012 18:53:48 +0000 (14:53 -0400)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/SIISelLowering.cpp

index 42c2e7f7ceb6cb7ee26cbc86bcba172244e73903..3f23949ae901adb90017a313d87bb1f1cb37975e 100644 (file)
@@ -261,8 +261,8 @@ void SITargetLowering::LowerSI_V_CNDLT(MachineInstr *MI, MachineBasicBlock &BB,
 
   BuildMI(BB, I, BB.findDebugLoc(I), TII->get(AMDGPU::V_CNDMASK_B32))
           .addOperand(MI->getOperand(0))
-          .addOperand(MI->getOperand(2))
           .addOperand(MI->getOperand(3))
+          .addOperand(MI->getOperand(2))
          .addReg(AMDGPU::VCC);
 
   MI->eraseFromParent();