mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 12:02:58 +02:00
R600/SI: Match addc to S_ADD_U32.
The carry always goes to SCC. llvm-svn: 195037
This commit is contained in:
parent
3ce3089446
commit
adcc6666c5
@ -2054,6 +2054,13 @@ def : Pat <
|
||||
(EXTRACT_SUBREG $a, sub0)
|
||||
>;
|
||||
|
||||
// V_ADD_I32_e32/S_ADD_I32 produces carry in VCC/SCC. For the vector
|
||||
// case, the sgpr-copies pass will fix this to use the vector version.
|
||||
def : Pat <
|
||||
(i32 (addc i32:$src0, i32:$src1)),
|
||||
(S_ADD_I32 $src0, $src1)
|
||||
>;
|
||||
|
||||
def : Pat <
|
||||
(or i64:$a, i64:$b),
|
||||
(INSERT_SUBREG
|
||||
|
Loading…
Reference in New Issue
Block a user