From: Tom Stellard Date: Wed, 23 May 2012 19:37:11 +0000 (-0400) Subject: radeon/llvm: Remove AMDIL EXP* instructions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8ba697c1ec3e07e331cba85e67bf5c2b8d41e57;p=mesa.git radeon/llvm: Remove AMDIL EXP* instructions --- diff --git a/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl b/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl index 64a29285782..f0cb9ae0bfc 100644 --- a/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl +++ b/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl @@ -31,10 +31,6 @@ use warnings; use strict; -my @F32_MULTICLASSES = qw { - UnaryIntrinsicFloatScalar -}; - my @I32_MULTICLASSES = qw { BinaryOpMCi32Const }; @@ -52,14 +48,11 @@ my $FILE_TYPE = $ARGV[0]; open AMDIL, '<', 'AMDILInstructions.td'; -my @INST_ENUMS = ('NONE', 'FEQ', 'FGE', 'FLT', 'FNE', 'MOVE_f32', 'MOVE_i32', 'FTOI', 'ITOF', 'UGT', 'IGE', 'INE', 'UGE', 'IEQ', 'SMULHI_i32', 'SMUL_i32'); +my @INST_ENUMS = ('NONE', 'FEQ', 'FGE', 'FLT', 'FNE', 'MOVE_f32', 'MOVE_i32', 'FTOI', 'ITOF', 'UGT', 'IGE', 'INE', 'UGE', 'IEQ', 'SMULHI_i32', 'SMUL_i32', 'LOG_f32', 'RSQ_f32', 'SIN_f32', 'COS_f32'); while () { if ($_ =~ /defm\s+([A-Z_]+)\s+:\s+([A-Za-z0-9]+); defm SIN : UnaryIntrinsicFloatScalar; defm COS : UnaryIntrinsicFloatScalar; defm SQRT : UnaryIntrinsicFloatScalar; -defm EXP : UnaryIntrinsicFloatScalar; -defm EXPVEC : UnaryIntrinsicFloat; defm SQRTVEC : UnaryIntrinsicFloat; defm COSVEC : UnaryIntrinsicFloat; defm SINVEC : UnaryIntrinsicFloat; diff --git a/src/gallium/drivers/radeon/R600Instructions.td b/src/gallium/drivers/radeon/R600Instructions.td index 4737f1ca9f4..c1458fba482 100644 --- a/src/gallium/drivers/radeon/R600Instructions.td +++ b/src/gallium/drivers/radeon/R600Instructions.td @@ -622,9 +622,8 @@ class CUBE_Common inst> : InstR600 < class EXP_IEEE_Common inst> : R600_1OP < inst, "EXP_IEEE", - []> { - let AMDILOp = AMDILInst.EXP_f32; -} + [(set R600_Reg32:$dst, (fexp2 R600_Reg32:$src))] +>; class FLT_TO_INT_Common inst> : R600_1OP < inst, "FLT_TO_INT", []> {