From bcfdec73d1e9d4b6f398a9a13b7795c01a89f0f2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 19 Dec 2005 02:06:50 +0000 Subject: [PATCH] Correct bool truncstore operand order git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24855 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcInstrInfo.td | 4 ++-- lib/Target/SparcV8/SparcV8InstrInfo.td | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)>;