radeon/llvm: Lower bitcast instructions to copies
authorTom Stellard <thomas.stellard@amd.com>
Mon, 14 May 2012 14:40:12 +0000 (10:40 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 14 May 2012 14:40:58 +0000 (10:40 -0400)
src/gallium/drivers/radeon/R600LowerInstructions.cpp

index dca1fe195ccd96f80a2d0d4c2222b5a247d57004..41bf365eabd2ff40d152a24a944e6aee0816c522 100644 (file)
@@ -255,6 +255,16 @@ bool R600LowerInstructionsPass::runOnMachineFunction(MachineFunction &MF)
                   .addImm(0);
           break;
         }
+
+      case AMDIL::IL_ASINT_f32:
+      case AMDIL::IL_ASINT_i32:
+      case AMDIL::IL_ASFLOAT_f32:
+      case AMDIL::IL_ASFLOAT_i32:
+        BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(AMDIL::COPY))
+                .addOperand(MI.getOperand(0))
+                .addOperand(MI.getOperand(1));
+        break;
+
       case AMDIL::ILT:
         BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(AMDIL::SETGT_INT))
                 .addOperand(MI.getOperand(0))