From: Vadim Girlin Date: Mon, 7 May 2012 09:17:00 +0000 (+0400) Subject: radeon/llvm: fix ABS_i32 instruction lowering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06db74a753bb71adf5370d3f1133c43ae40aec72;p=mesa.git radeon/llvm: fix ABS_i32 instruction lowering Swap source operands. Signed-off-by: Vadim Girlin --- diff --git a/src/gallium/drivers/radeon/R600LowerInstructions.cpp b/src/gallium/drivers/radeon/R600LowerInstructions.cpp index 181c60650cc..b54778da299 100644 --- a/src/gallium/drivers/radeon/R600LowerInstructions.cpp +++ b/src/gallium/drivers/radeon/R600LowerInstructions.cpp @@ -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);