From 71088e68e8711230c55fc3a59efa3997bea4aaad Mon Sep 17 00:00:00 2001 From: Christian Konig Date: Thu, 21 Feb 2013 15:17:41 +0000 Subject: [PATCH] R600/SI: inline V_ADD|SUB_F32 patterns MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König Reviewed-by: Tom Stellard Reviewed-by: Michel Dänzer llvm-svn: 175758 --- llvm/lib/Target/R600/SIInstructions.td | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/llvm/lib/Target/R600/SIInstructions.td b/llvm/lib/Target/R600/SIInstructions.td index 2ee82ca..55b4fa8 100644 --- a/llvm/lib/Target/R600/SIInstructions.td +++ b/llvm/lib/Target/R600/SIInstructions.td @@ -746,17 +746,13 @@ def : Pat < defm V_READLANE_B32 : VOP2_32 <0x00000001, "V_READLANE_B32", []>; defm V_WRITELANE_B32 : VOP2_32 <0x00000002, "V_WRITELANE_B32", []>; -defm V_ADD_F32 : VOP2_32 <0x00000003, "V_ADD_F32", []>; -def : Pat < - (f32 (fadd VSrc_32:$src0, VReg_32:$src1)), - (V_ADD_F32_e32 VSrc_32:$src0, VReg_32:$src1) +defm V_ADD_F32 : VOP2_32 <0x00000003, "V_ADD_F32", + [(set VReg_32:$dst, (fadd VSrc_32:$src0, VReg_32:$src1))] >; - -defm V_SUB_F32 : VOP2_32 <0x00000004, "V_SUB_F32", []>; -def : Pat < - (f32 (fsub VSrc_32:$src0, VReg_32:$src1)), - (V_SUB_F32_e32 VSrc_32:$src0, VReg_32:$src1) +defm V_SUB_F32 : VOP2_32 <0x00000004, "V_SUB_F32", + [(set VReg_32:$dst, (fsub VSrc_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.7.4