Mesa (master): radeon/llvm: Fix operand order of V_CNDMASK in custom inserter

Tom Stellard tstellar at kemper.freedesktop.org
Tue Sep 11 19:57:52 UTC 2012


Module: Mesa
Branch: master
Commit: 843ac06ad27fe25293a32a991156ee364ef23cf1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=843ac06ad27fe25293a32a991156ee364ef23cf1

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Wed Sep  5 14:36:21 2012 -0400

radeon/llvm: Fix operand order of V_CNDMASK in custom inserter

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>

---

 src/gallium/drivers/radeon/SIISelLowering.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/radeon/SIISelLowering.cpp b/src/gallium/drivers/radeon/SIISelLowering.cpp
index 42c2e7f..3f23949 100644
--- a/src/gallium/drivers/radeon/SIISelLowering.cpp
+++ b/src/gallium/drivers/radeon/SIISelLowering.cpp
@@ -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();




More information about the mesa-commit mailing list