add bool truncstores

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-12-19 00:19:21 +00:00
parent 8ba0423660
commit f53d0bfbfd
2 changed files with 12 additions and 0 deletions

View File

@ -721,3 +721,9 @@ def : Pat<(i32 (extload ADDRrr:$src, i8)), (LDUBrr ADDRrr:$src)>;
def : Pat<(i32 (extload ADDRri:$src, i8)), (LDUBri ADDRri:$src)>;
def : Pat<(i32 (extload ADDRrr:$src, i16)), (LDUHrr ADDRrr:$src)>;
def : Pat<(i32 (extload ADDRri:$src, i16)), (LDUHri ADDRri:$src)>;
// truncstore bool -> truncstore byte.
def : Pat<(truncstore IntRegs:$src, ADDRrr:$addr, i1),
(STBrr IntRegs:$src, ADDRrr:$addr)>;
def : Pat<(truncstore IntRegs:$src, ADDRri:$addr, i1),
(STBri IntRegs:$src, ADDRri:$addr)>;

View File

@ -721,3 +721,9 @@ def : Pat<(i32 (extload ADDRrr:$src, i8)), (LDUBrr ADDRrr:$src)>;
def : Pat<(i32 (extload ADDRri:$src, i8)), (LDUBri ADDRri:$src)>;
def : Pat<(i32 (extload ADDRrr:$src, i16)), (LDUHrr ADDRrr:$src)>;
def : Pat<(i32 (extload ADDRri:$src, i16)), (LDUHri ADDRri:$src)>;
// truncstore bool -> truncstore byte.
def : Pat<(truncstore IntRegs:$src, ADDRrr:$addr, i1),
(STBrr IntRegs:$src, ADDRrr:$addr)>;
def : Pat<(truncstore IntRegs:$src, ADDRri:$addr, i1),
(STBri IntRegs:$src, ADDRri:$addr)>;