forked from OSchip/llvm-project
implement zextload bool and truncstore bool
llvm-svn: 31348
This commit is contained in:
parent
91f120f4fa
commit
0cd8d14c7c
|
@ -347,3 +347,13 @@ def : Pat<(extloadi8 IntRegs:$addr),
|
|||
(LDRB IntRegs:$addr)>;
|
||||
def : Pat<(extloadi16 IntRegs:$addr),
|
||||
(LDRH IntRegs:$addr)>;
|
||||
|
||||
// zextload bool -> zextload byte
|
||||
def : Pat<(i32 (zextloadi1 IntRegs:$addr)), (LDRB IntRegs:$addr)>;
|
||||
def : Pat<(i32 (zextloadi1 IntRegs:$addr)), (LDRB IntRegs:$addr)>;
|
||||
|
||||
// truncstore bool -> truncstore byte.
|
||||
def : Pat<(truncstorei1 IntRegs:$src, IntRegs:$addr),
|
||||
(STRB IntRegs:$addr, IntRegs:$src)>;
|
||||
def : Pat<(truncstorei1 IntRegs:$src, IntRegs:$addr),
|
||||
(STRB IntRegs:$addr, IntRegs:$src)>;
|
||||
|
|
Loading…
Reference in New Issue