Mesa (master): radeonsi: Handle SUB_f32.
Michel Dänzer
daenzer at kemper.freedesktop.org
Tue Jun 12 18:19:41 UTC 2012
Module: Mesa
Branch: master
Commit: 4c418cf1a37f824676bcc0454fcc4cf6916e0fdd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c418cf1a37f824676bcc0454fcc4cf6916e0fdd
Author: Thomas Stellard <tom.stellard at amd.com>
Date: Thu Jun 7 19:33:24 2012 +0200
radeonsi: Handle SUB_f32.
Signed-off-by: Thomas Stellard <tom.stellard at amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
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 ec3f8cb..cb3d22a 100644
--- a/src/gallium/drivers/radeon/AMDILInstructions.td
+++ b/src/gallium/drivers/radeon/AMDILInstructions.td
@@ -230,7 +230,6 @@ defm DIV : BinaryIntrinsicFloat<IL_OP_DIV, int_AMDIL_div>;
defm FMA : TernaryIntrinsicFloat<IL_OP_FMA, int_AMDIL_fma>;
defm LERP : TernaryIntrinsicFloat<IL_OP_LERP, int_AMDIL_lerp>;
}
-defm SUB : BinaryOpMCf32<IL_OP_SUB, fsub>;
defm NEAR : UnaryOpMCf32<IL_OP_ROUND_NEAR, fnearbyint>;
defm RND_Z : UnaryOpMCf32<IL_OP_ROUND_ZERO, ftrunc>;
diff --git a/src/gallium/drivers/radeon/SIInstructions.td b/src/gallium/drivers/radeon/SIInstructions.td
index 8fd0c49..a96d783 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 <
More information about the mesa-commit
mailing list