diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2012-03-16 16:11:36 -0400 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2012-03-16 16:11:36 -0400 |
commit | 6cb61d2d903ff84da0354064af593c26c6076f6d (patch) | |
tree | 5647942426eb4a34361e29f2c9e6659a2da27cd2 /src | |
parent | fe10c949fea8012ad924f11838e74bc83cfebe42 (diff) |
r600/llvm: Lower CMOVLOG_i32 to CNDE_INT
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeon/R600LowerInstructions.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/R600LowerInstructions.cpp b/src/gallium/drivers/radeon/R600LowerInstructions.cpp index eac4d80e639..f9b41e6bc5a 100644 --- a/src/gallium/drivers/radeon/R600LowerInstructions.cpp +++ b/src/gallium/drivers/radeon/R600LowerInstructions.cpp @@ -156,7 +156,6 @@ bool R600LowerInstructionsPass::runOnMachineFunction(MachineFunction &MF) break; } case AMDIL::CMOVLOG_f32: - case AMDIL::CMOVLOG_i32: BuildMI(MBB, I, MBB.findDebugLoc(I), TM.getInstrInfo()->get(MI.getOpcode())) .addOperand(MI.getOperand(0)) .addOperand(MI.getOperand(1)) @@ -164,6 +163,14 @@ bool R600LowerInstructionsPass::runOnMachineFunction(MachineFunction &MF) .addOperand(MI.getOperand(2)); break; + case AMDIL::CMOVLOG_i32: + BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(AMDIL::CNDE_INT)) + .addOperand(MI.getOperand(0)) + .addOperand(MI.getOperand(1)) + .addOperand(MI.getOperand(3)) + .addOperand(MI.getOperand(2)); + break; + case AMDIL::CLAMP_f32: { MachineOperand lowOp = MI.getOperand(2); |