From 4c418cf1a37f824676bcc0454fcc4cf6916e0fdd Mon Sep 17 00:00:00 2001 From: Thomas Stellard Date: Thu, 7 Jun 2012 19:33:24 +0200 Subject: [PATCH] radeonsi: Handle SUB_f32. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Stellard Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeon/AMDILInstructions.td | 1 - src/gallium/drivers/radeon/SIInstructions.td | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeon/AMDILInstructions.td b/src/gallium/drivers/radeon/AMDILInstructions.td index ec3f8cbe31b..cb3d22a7662 100644 --- a/src/gallium/drivers/radeon/AMDILInstructions.td +++ b/src/gallium/drivers/radeon/AMDILInstructions.td @@ -230,7 +230,6 @@ defm DIV : BinaryIntrinsicFloat; defm FMA : TernaryIntrinsicFloat; defm LERP : TernaryIntrinsicFloat; } -defm SUB : BinaryOpMCf32; defm NEAR : UnaryOpMCf32; defm RND_Z : UnaryOpMCf32; diff --git a/src/gallium/drivers/radeon/SIInstructions.td b/src/gallium/drivers/radeon/SIInstructions.td index 8fd0c4933fd..a96d7839fba 100644 --- a/src/gallium/drivers/radeon/SIInstructions.td +++ b/src/gallium/drivers/radeon/SIInstructions.td @@ -602,7 +602,9 @@ defm V_ADD_F32 : VOP2_32 < [(set VReg_32:$dst, (fadd AllReg_32:$src0, VReg_32:$src1))] >; -defm V_SUB_F32 : VOP2_32 <0x00000004, "V_SUB_F32", []>; +defm V_SUB_F32 : VOP2_32 <0x00000004, "V_SUB_F32", + [(set VReg_32:$dst, (fsub AllReg_32:$src0, VReg_32:$src1))] +>; defm V_SUBREV_F32 : VOP2_32 <0x00000005, "V_SUBREV_F32", []>; defm V_MAC_LEGACY_F32 : VOP2_32 <0x00000006, "V_MAC_LEGACY_F32", []>; defm V_MUL_LEGACY_F32 : VOP2_32 < -- 2.30.2