From: Chris Lattner Date: Mon, 19 Dec 2005 01:44:58 +0000 (+0000) Subject: add the other bool zextload as well X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e2d97f8399d1d1072a926f9911f3d82f7730358d;p=oota-llvm.git add the other bool zextload as well git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24854 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index dbc3a4573d3..31a0a6ad572 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -732,6 +732,7 @@ def : Pat<(i32 (extload ADDRri:$src, i16)), (LDUHri ADDRri:$src)>; // zextload bool -> zextload byte def : Pat<(i32 (zextload ADDRrr:$src, i1)), (LDUBrr ADDRrr:$src)>; +def : Pat<(i32 (zextload ADDRri:$src, i1)), (LDUBri ADDRri:$src)>; // truncstore bool -> truncstore byte. def : Pat<(truncstore IntRegs:$src, ADDRrr:$addr, i1), diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.td b/lib/Target/SparcV8/SparcV8InstrInfo.td index dbc3a4573d3..31a0a6ad572 100644 --- a/lib/Target/SparcV8/SparcV8InstrInfo.td +++ b/lib/Target/SparcV8/SparcV8InstrInfo.td @@ -732,6 +732,7 @@ def : Pat<(i32 (extload ADDRri:$src, i16)), (LDUHri ADDRri:$src)>; // zextload bool -> zextload byte def : Pat<(i32 (zextload ADDRrr:$src, i1)), (LDUBrr ADDRrr:$src)>; +def : Pat<(i32 (zextload ADDRri:$src, i1)), (LDUBri ADDRri:$src)>; // truncstore bool -> truncstore byte. def : Pat<(truncstore IntRegs:$src, ADDRrr:$addr, i1),