From a8ba697c1ec3e07e331cba85e67bf5c2b8d41e57 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 23 May 2012 15:37:11 -0400 Subject: [PATCH] radeon/llvm: Remove AMDIL EXP* instructions --- src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl | 11 ++--------- src/gallium/drivers/radeon/AMDGPUISelLowering.cpp | 3 +++ src/gallium/drivers/radeon/AMDGPUUtil.cpp | 1 - src/gallium/drivers/radeon/AMDILInstructions.td | 2 -- src/gallium/drivers/radeon/R600Instructions.td | 5 ++--- 5 files changed, 7 insertions(+), 15 deletions(-) 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", []> { -- 2.30.2