From ea00632fe0667766783fb66f9db5198554fee159 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 23 May 2012 13:59:32 -0400 Subject: [PATCH] radeon/llvm: Remove AMDIL ROUND_NEAREST instruction --- src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl | 2 +- src/gallium/drivers/radeon/AMDGPUISelLowering.cpp | 3 +++ src/gallium/drivers/radeon/AMDILInstructions.td | 2 -- src/gallium/drivers/radeon/R600Instructions.td | 5 ++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl b/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl index 654f24f17e5..1ba3afe9db0 100644 --- a/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl +++ b/src/gallium/drivers/radeon/AMDGPUGenInstrEnums.pl @@ -54,7 +54,7 @@ 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', 'BINARY_OR_i32', 'BINARY_NOT_i32', 'ROUND_NEAREST_f32'); +my @INST_ENUMS = ('NONE', 'FEQ', 'FGE', 'FLT', 'FNE', 'MOVE_f32', 'MOVE_i32', 'FTOI', 'ITOF', 'UGT', 'IGE', 'INE', 'UGE', 'IEQ', 'BINARY_OR_i32', 'BINARY_NOT_i32'); while () { if ($_ =~ /defm\s+([A-Z_]+)\s+:\s+([A-Za-z0-9]+); defm PIREDUCE : UnaryIntrinsicFloat; -defm ROUND_NEAREST : UnaryIntrinsicFloat; defm ROUND_NEGINF : UnaryIntrinsicFloat; defm ROUND_ZERO : UnaryIntrinsicFloat { - let AMDILOp = AMDILInst.ROUND_NEAREST_f32; -} + [(set R600_Reg32:$dst, (frint R600_Reg32:$src))] +>; def FLOOR : R600_1OP < 0x14, "FLOOR", -- 2.30.2