radeon/llvm: Lower bitcast instructions to copies

This commit is contained in:
Tom Stellard
2012-05-14 10:40:12 -04:00
parent ed9955dc29
commit 224e187f98
@@ -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))