diff options
author | Thomas Stellard <[email protected]> | 2012-06-07 19:33:24 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2012-06-12 18:48:16 +0200 |
commit | 4c418cf1a37f824676bcc0454fcc4cf6916e0fdd (patch) | |
tree | 9534d9d845bee568810d13700c953853d19ee0dd | |
parent | 4c4ef9c29acf4f1f40aa3c5d268322efd26c1786 (diff) |
radeonsi: Handle SUB_f32.
Signed-off-by: Thomas Stellard <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeon/AMDILInstructions.td | 1 | ||||
-rw-r--r-- | 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<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 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 < |