mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
The labyrinthine X86 backend no longer appears to require
these patterns. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fbd53f79f5
commit
64849ce66f
@ -890,43 +890,6 @@ def : Pat<(X86call (i32 texternalsym:$dst)),
|
||||
def : Pat<(X86call (i32 imm:$dst)),
|
||||
(CALLpcrel32 imm:$dst)>, Requires<[CallImmAddr]>;
|
||||
|
||||
// X86 specific add which produces a flag.
|
||||
def : Pat<(addc GR32:$src1, GR32:$src2),
|
||||
(ADD32rr GR32:$src1, GR32:$src2)>;
|
||||
def : Pat<(addc GR32:$src1, (load addr:$src2)),
|
||||
(ADD32rm GR32:$src1, addr:$src2)>;
|
||||
def : Pat<(addc GR32:$src1, imm:$src2),
|
||||
(ADD32ri GR32:$src1, imm:$src2)>;
|
||||
def : Pat<(addc GR32:$src1, i32immSExt8:$src2),
|
||||
(ADD32ri8 GR32:$src1, i32immSExt8:$src2)>;
|
||||
|
||||
def : Pat<(addc GR64:$src1, GR64:$src2),
|
||||
(ADD64rr GR64:$src1, GR64:$src2)>;
|
||||
def : Pat<(addc GR64:$src1, (load addr:$src2)),
|
||||
(ADD64rm GR64:$src1, addr:$src2)>;
|
||||
def : Pat<(addc GR64:$src1, i64immSExt8:$src2),
|
||||
(ADD64ri8 GR64:$src1, i64immSExt8:$src2)>;
|
||||
def : Pat<(addc GR64:$src1, i64immSExt32:$src2),
|
||||
(ADD64ri32 GR64:$src1, imm:$src2)>;
|
||||
|
||||
def : Pat<(subc GR32:$src1, GR32:$src2),
|
||||
(SUB32rr GR32:$src1, GR32:$src2)>;
|
||||
def : Pat<(subc GR32:$src1, (load addr:$src2)),
|
||||
(SUB32rm GR32:$src1, addr:$src2)>;
|
||||
def : Pat<(subc GR32:$src1, imm:$src2),
|
||||
(SUB32ri GR32:$src1, imm:$src2)>;
|
||||
def : Pat<(subc GR32:$src1, i32immSExt8:$src2),
|
||||
(SUB32ri8 GR32:$src1, i32immSExt8:$src2)>;
|
||||
|
||||
def : Pat<(subc GR64:$src1, GR64:$src2),
|
||||
(SUB64rr GR64:$src1, GR64:$src2)>;
|
||||
def : Pat<(subc GR64:$src1, (load addr:$src2)),
|
||||
(SUB64rm GR64:$src1, addr:$src2)>;
|
||||
def : Pat<(subc GR64:$src1, i64immSExt8:$src2),
|
||||
(SUB64ri8 GR64:$src1, i64immSExt8:$src2)>;
|
||||
def : Pat<(subc GR64:$src1, imm:$src2),
|
||||
(SUB64ri32 GR64:$src1, i64immSExt32:$src2)>;
|
||||
|
||||
// Comparisons.
|
||||
|
||||
// TEST R,R is smaller than CMP R,0
|
||||
|
Loading…
x
Reference in New Issue
Block a user