[Mesa-dev] [PATCH 03/12] radeon/llvm: fix ABS_i32 instruction lowering
Vadim Girlin
vadimgirlin at gmail.com
Mon May 7 10:08:45 PDT 2012
Swap source operands for SETGE_INT.
Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
src/gallium/drivers/radeon/R600LowerInstructions.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/radeon/R600LowerInstructions.cpp b/src/gallium/drivers/radeon/R600LowerInstructions.cpp
index 181c606..b54778d 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);
--
1.7.10.1
More information about the mesa-dev
mailing list