diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index 31a0a6ad572..0094ef6124e 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -736,6 +736,6 @@ def : Pat<(i32 (zextload ADDRri:$src, i1)), (LDUBri ADDRri:$src)>; // truncstore bool -> truncstore byte. def : Pat<(truncstore IntRegs:$src, ADDRrr:$addr, i1), - (STBrr IntRegs:$src, ADDRrr:$addr)>; + (STBrr ADDRrr:$addr, IntRegs:$src)>; def : Pat<(truncstore IntRegs:$src, ADDRri:$addr, i1), - (STBri IntRegs:$src, ADDRri:$addr)>; + (STBri ADDRri:$addr, IntRegs:$src)>; diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.td b/lib/Target/SparcV8/SparcV8InstrInfo.td index 31a0a6ad572..0094ef6124e 100644 --- a/lib/Target/SparcV8/SparcV8InstrInfo.td +++ b/lib/Target/SparcV8/SparcV8InstrInfo.td @@ -736,6 +736,6 @@ def : Pat<(i32 (zextload ADDRri:$src, i1)), (LDUBri ADDRri:$src)>; // truncstore bool -> truncstore byte. def : Pat<(truncstore IntRegs:$src, ADDRrr:$addr, i1), - (STBrr IntRegs:$src, ADDRrr:$addr)>; + (STBrr ADDRrr:$addr, IntRegs:$src)>; def : Pat<(truncstore IntRegs:$src, ADDRri:$addr, i1), - (STBri IntRegs:$src, ADDRri:$addr)>; + (STBri ADDRri:$addr, IntRegs:$src)>;