summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-04-27 16:22:58 -0400
committerTom Stellard <thomas.stellard@amd.com>2012-05-03 09:20:23 -0400
commit9e522bd201e7cba526e19f7f0422d5cf781be6e8 (patch)
tree84a7fa927c6b4e8fbe56e710eb266e5eb6cd6180
parenta2e08a40f5144a3533de9c3ede422a34b7a44255 (diff)
r600g/llvm: Lower ULT A, B, C to SETGT_UINT A, C, B
-rw-r--r--src/gallium/drivers/radeon/R600LowerInstructions.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/R600LowerInstructions.cpp b/src/gallium/drivers/radeon/R600LowerInstructions.cpp
index 8395d22c4ad..181c60650cc 100644
--- a/src/gallium/drivers/radeon/R600LowerInstructions.cpp
+++ b/src/gallium/drivers/radeon/R600LowerInstructions.cpp
@@ -343,6 +343,13 @@ bool R600LowerInstructionsPass::runOnMachineFunction(MachineFunction &MF)
break;
}
+ case AMDIL::ULT:
+ BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(AMDIL::SETGT_UINT))
+ .addOperand(MI.getOperand(0))
+ .addOperand(MI.getOperand(2))
+ .addOperand(MI.getOperand(1));
+ break;
+
default:
continue;
}