radeon/llvm: fix ABS_i32 instruction lowering
authorVadim Girlin <vadimgirlin@gmail.com>
Mon, 7 May 2012 09:17:00 +0000 (13:17 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Mon, 7 May 2012 21:18:22 +0000 (01:18 +0400)
Swap source operands.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/radeon/R600LowerInstructions.cpp

index 181c60650cce4a519e044b2d6d582f86262cc8ca..b54778da299040aad993fe9ed91f468dd4205351 100644 (file)
@@ -93,8 +93,8 @@ bool R600LowerInstructionsPass::runOnMachineFunction(MachineFunction &MF)
                            &AMDIL::R600_TReg32RegClass);
           BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(AMDIL::SETGE_INT),
                   setgt)
-                  .addOperand(MI.getOperand(1))
-                  .addReg(AMDIL::ZERO);
+                  .addReg(AMDIL::ZERO)
+                  .addOperand(MI.getOperand(1));
 
           unsigned add_int = MRI->createVirtualRegister(
                              &AMDIL::R600_TReg32RegClass);