diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-11-18 20:09:34 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-11-18 20:09:34 +0000 |
commit | 62f35fb9267d4c58d5359c43358ab42c25708df4 (patch) | |
tree | 1a0dc54d160d47bbf3ab9e8aab80aca30ebd4aae /lib/Target | |
parent | f53b7841a1f173cb06a42e59e549b2759063bb97 (diff) | |
download | external_llvm-62f35fb9267d4c58d5359c43358ab42c25708df4.zip external_llvm-62f35fb9267d4c58d5359c43358ab42c25708df4.tar.gz external_llvm-62f35fb9267d4c58d5359c43358ab42c25708df4.tar.bz2 |
R600/SI: Match adde/sube to S_ADDC_U32/S_SUBB_U32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/R600/SIInstructions.td | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td index 9f57931..3ac96d8 100644 --- a/lib/Target/R600/SIInstructions.td +++ b/lib/Target/R600/SIInstructions.td @@ -1142,10 +1142,12 @@ def S_SUB_I32 : SOP2_32 <0x00000003, "S_SUB_I32", let Uses = [SCC] in { // Carry in comes from SCC let isCommutable = 1 in { -def S_ADDC_U32 : SOP2_32 <0x00000004, "S_ADDC_U32", []>; +def S_ADDC_U32 : SOP2_32 <0x00000004, "S_ADDC_U32", + [(set i32:$dst, (adde (i32 SSrc_32:$src0), (i32 SSrc_32:$src1)))]>; } // End isCommutable = 1 -def S_SUBB_U32 : SOP2_32 <0x00000005, "S_SUBB_U32", []>; +def S_SUBB_U32 : SOP2_32 <0x00000005, "S_SUBB_U32", + [(set i32:$dst, (sube (i32 SSrc_32:$src0), (i32 SSrc_32:$src1)))]>; } // End Uses = [SCC] } // End Defs = [SCC] |