summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-14 10:40:12 -0400
committerTom Stellard <[email protected]>2012-05-14 10:40:58 -0400
commit224e187f986223e5c95deb9502c9663d968014ac (patch)
treeaa0f43f3f6502b3ae72bb743a572dea5ac8a6b69 /src/gallium/drivers
parented9955dc29cb948c5516c9179ccd2c8656ba9f04 (diff)
radeon/llvm: Lower bitcast instructions to copies
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeon/R600LowerInstructions.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/R600LowerInstructions.cpp b/src/gallium/drivers/radeon/R600LowerInstructions.cpp
index dca1fe195cc..41bf365eabd 100644
--- a/src/gallium/drivers/radeon/R600LowerInstructions.cpp
+++ b/src/gallium/drivers/radeon/R600LowerInstructions.cpp
@@ -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))