mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
R600/SI: Specify S_ADD/S_SUB set SCC and add is commutable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e38856f04
commit
f53b7841a1
@ -1126,17 +1126,29 @@ def V_DIV_FMAS_F64 : VOP3_64 <0x00000170, "V_DIV_FMAS_F64", []>;
|
||||
//def V_QSAD_U8 : VOP3_U8 <0x00000172, "V_QSAD_U8", []>;
|
||||
//def V_MQSAD_U8 : VOP3_U8 <0x00000173, "V_MQSAD_U8", []>;
|
||||
def V_TRIG_PREOP_F64 : VOP3_64 <0x00000174, "V_TRIG_PREOP_F64", []>;
|
||||
|
||||
let Defs = [SCC] in { // Carry out goes to SCC
|
||||
let isCommutable = 1 in {
|
||||
def S_ADD_U32 : SOP2_32 <0x00000000, "S_ADD_U32", []>;
|
||||
def S_SUB_U32 : SOP2_32 <0x00000001, "S_SUB_U32", []>;
|
||||
def S_ADD_I32 : SOP2_32 <0x00000002, "S_ADD_I32",
|
||||
[(set i32:$dst, (add i32:$src0, i32:$src1))]
|
||||
>;
|
||||
} // End isCommutable = 1
|
||||
|
||||
def S_SUB_U32 : SOP2_32 <0x00000001, "S_SUB_U32", []>;
|
||||
def S_SUB_I32 : SOP2_32 <0x00000003, "S_SUB_I32",
|
||||
[(set i32:$dst, (sub i32:$src0, i32:$src1))]
|
||||
>;
|
||||
|
||||
let Uses = [SCC] in { // Carry in comes from SCC
|
||||
let isCommutable = 1 in {
|
||||
def S_ADDC_U32 : SOP2_32 <0x00000004, "S_ADDC_U32", []>;
|
||||
} // End isCommutable = 1
|
||||
|
||||
def S_SUBB_U32 : SOP2_32 <0x00000005, "S_SUBB_U32", []>;
|
||||
} // End Uses = [SCC]
|
||||
} // End Defs = [SCC]
|
||||
|
||||
def S_MIN_I32 : SOP2_32 <0x00000006, "S_MIN_I32", []>;
|
||||
def S_MIN_U32 : SOP2_32 <0x00000007, "S_MIN_U32", []>;
|
||||
def S_MAX_I32 : SOP2_32 <0x00000008, "S_MAX_I32", []>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user