r600g/llvm: Lower ULT A, B, C to SETGT_UINT A, C, B
authorTom Stellard <thomas.stellard@amd.com>
Fri, 27 Apr 2012 20:22:58 +0000 (16:22 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 3 May 2012 13:20:23 +0000 (09:20 -0400)
src/gallium/drivers/radeon/R600LowerInstructions.cpp

index 8395d22c4adce9ba9b4fdbffe954f4368f0a09dd..181c60650cce4a519e044b2d6d582f86262cc8ca 100644 (file)
@@ -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;
       }