mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
extload -> zextload
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -484,6 +484,11 @@ def : ThumbV5Pat<(ARMcall GPR:$dst), (tBLXr GPR:$dst)>;
|
|||||||
def : ThumbPat<(zextloadi1 t_addrmode_s1:$addr),
|
def : ThumbPat<(zextloadi1 t_addrmode_s1:$addr),
|
||||||
(tLDRB t_addrmode_s1:$addr)>;
|
(tLDRB t_addrmode_s1:$addr)>;
|
||||||
|
|
||||||
|
// extload -> zextload
|
||||||
|
def : ThumbPat<(extloadi1 t_addrmode_s1:$addr), (tLDRB t_addrmode_s1:$addr)>;
|
||||||
|
def : ThumbPat<(extloadi8 t_addrmode_s1:$addr), (tLDRB t_addrmode_s1:$addr)>;
|
||||||
|
def : ThumbPat<(extloadi16 t_addrmode_s2:$addr), (tLDRH t_addrmode_s2:$addr)>;
|
||||||
|
|
||||||
// truncstore i1 -> truncstore i8
|
// truncstore i1 -> truncstore i8
|
||||||
def : ThumbPat<(truncstorei1 GPR:$src, t_addrmode_s1:$dst),
|
def : ThumbPat<(truncstorei1 GPR:$src, t_addrmode_s1:$dst),
|
||||||
(tSTRB GPR:$src, t_addrmode_s1:$dst)>;
|
(tSTRB GPR:$src, t_addrmode_s1:$dst)>;
|
||||||
|
Reference in New Issue
Block a user