From 662ccbfc21a650e0a52f6d293fa33f9e23e654c6 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 24 May 2012 09:01:33 -0400 Subject: radeon/llvm: Remove AMDIL instructions MULHI, SMUL --- src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl | 2 +- src/gallium/drivers/radeon/AMDILInstructions.td | 3 --- src/gallium/drivers/radeon/R600Instructions.td | 10 ++++------ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl b/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl index 7192accadfa..a77126d7110 100644 --- a/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl +++ b/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl @@ -44,7 +44,7 @@ my $FILE_TYPE = $ARGV[0]; open AMDIL, '<', 'AMDILInstructions.td'; -my @INST_ENUMS = ('NONE', 'FEQ', 'FGE', 'FLT', 'FNE', 'MOVE_f32', 'MOVE_i32', 'UGT', 'IGE', 'INE', 'UGE', 'IEQ', 'SMULHI_i32', 'SMUL_i32', 'LOG_f32', 'RSQ_f32', 'SIN_f32', 'COS_f32'); +my @INST_ENUMS = ('NONE', 'FEQ', 'FGE', 'FLT', 'FNE', 'MOVE_f32', 'MOVE_i32', 'UGT', 'IGE', 'INE', 'UGE', 'IEQ', 'LOG_f32', 'RSQ_f32', 'SIN_f32', 'COS_f32'); while () { if ($_ =~ /defm\s+([A-Z_]+)\s+:\s+([A-Za-z0-9]+); -defm SMUL : BinaryOpMCi32; -defm SMULHI : BinaryOpMCi32; // get rid of the addri via the tablegen instead of custom lowered instruction defm EADD : BinaryOpMCi32; def INTTOANY_i32: OneInOneOut; -defm UMULHI : BinaryOpMCi32; defm UDIV : BinaryOpMCi32; defm NATIVE_UDIV : BinaryIntrinsicInt; let mayLoad=0, mayStore=0 in { diff --git a/src/gallium/drivers/radeon/R600Instructions.td b/src/gallium/drivers/radeon/R600Instructions.td index a2427769082..7bfd552d86e 100644 --- a/src/gallium/drivers/radeon/R600Instructions.td +++ b/src/gallium/drivers/radeon/R600Instructions.td @@ -663,9 +663,8 @@ class ASHR_Common inst> : R600_2OP < class MULHI_INT_Common inst> : R600_2OP < inst, "MULHI_INT $dst, $src0, $src1", - [] >{ - let AMDILOp = AMDILInst.SMULHI_i32; -} + [(set R600_Reg32:$dst, (mulhs R600_Reg32:$src0, R600_Reg32:$src1))] +>; class MULHI_UINT_Common inst> : R600_2OP < inst, "MULHI $dst, $src0, $src1", @@ -674,9 +673,8 @@ class MULHI_UINT_Common inst> : R600_2OP < class MULLO_INT_Common inst> : R600_2OP < inst, "MULLO_INT $dst, $src0, $src1", - [] >{ - let AMDILOp = AMDILInst.SMUL_i32; -} + [(set R600_Reg32:$dst, (mul R600_Reg32:$src0, R600_Reg32:$src1))] +>; class MULLO_UINT_Common inst> : R600_2OP < inst, "MULLO_UINT $dst, $src0, $src1", -- cgit v1.2.3