mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Add truncstore i1 patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5522037136
commit
b8414333ac
@ -2988,6 +2988,11 @@ def : Pat<(X86subflag R32:$src1, imm:$src2),
|
||||
def : Pat<(X86subflag R32:$src1, i32immSExt8:$src2),
|
||||
(SUB32ri8 R32:$src1, i32immSExt8:$src2)>;
|
||||
|
||||
def : Pat<(truncstore (i8 imm:$src), addr:$dst, i1),
|
||||
(MOV8mi addr:$dst, imm:$src)>;
|
||||
def : Pat<(truncstore R8:$src, addr:$dst, i1),
|
||||
(MOV8mr addr:$dst, R8:$src)>;
|
||||
|
||||
// {s|z}extload bool -> {s|z}extload byte
|
||||
def : Pat<(sextloadi16i1 addr:$src), (MOVSX16rm8 addr:$src)>;
|
||||
def : Pat<(sextloadi32i1 addr:$src), (MOVSX32rm8 addr:$src)>;
|
||||
|
Loading…
Reference in New Issue
Block a user