diff options
author | Wesley Peck <peckw@wesleypeck.com> | 2010-11-12 23:41:10 +0000 |
---|---|---|
committer | Wesley Peck <peckw@wesleypeck.com> | 2010-11-12 23:41:10 +0000 |
commit | 8bfdd8771431cd187794fb185f86727e73748810 (patch) | |
tree | b93d03b2a3cf105b836e315ad3d1f0c7d46231a7 /lib/Target/MBlaze | |
parent | b9a643e2cdfe0ee9f99e1e32ccdbfd3ddf13a46f (diff) | |
download | external_llvm-8bfdd8771431cd187794fb185f86727e73748810.zip external_llvm-8bfdd8771431cd187794fb185f86727e73748810.tar.gz external_llvm-8bfdd8771431cd187794fb185f86727e73748810.tar.bz2 |
Fixing improperly encoded reverse subtract instructions in MBlaze backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MBlaze')
-rw-r--r-- | lib/Target/MBlaze/MBlazeInstrFormats.td | 15 | ||||
-rw-r--r-- | lib/Target/MBlaze/MBlazeInstrInfo.td | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/lib/Target/MBlaze/MBlazeInstrFormats.td b/lib/Target/MBlaze/MBlazeInstrFormats.td index 27fa049..d62574d 100644 --- a/lib/Target/MBlaze/MBlazeInstrFormats.td +++ b/lib/Target/MBlaze/MBlazeInstrFormats.td @@ -125,18 +125,17 @@ class TB<bits<6> op, dag outs, dag ins, string asmstr, list<dag> pattern, class TAR<bits<6> op, bits<11> flags, dag outs, dag ins, string asmstr, list<dag> pattern, InstrItinClass itin> : - MBlazeInst<op,FRRR,outs, ins, asmstr, pattern, itin> + TA<op, flags, outs, ins, asmstr, pattern, itin> { - bits<5> rd; - bits<5> rb; - bits<5> ra; + bits<5> rrd; + bits<5> rrb; + bits<5> rra; let Form = FRRRR; - let Inst{6-10} = rd; - let Inst{11-15} = ra; - let Inst{16-20} = rb; - let Inst{21-31} = flags; + let rd = rrd; + let ra = rra; + let rb = rrb; } //===----------------------------------------------------------------------===// diff --git a/lib/Target/MBlaze/MBlazeInstrInfo.td b/lib/Target/MBlaze/MBlazeInstrInfo.td index 9802361..ae05b73 100644 --- a/lib/Target/MBlaze/MBlazeInstrInfo.td +++ b/lib/Target/MBlaze/MBlazeInstrInfo.td @@ -177,7 +177,7 @@ class ShiftI<bits<6> op, bits<2> flags, string instr_asm, SDNode OpNode, class ArithR<bits<6> op, bits<11> flags, string instr_asm, SDNode OpNode, InstrItinClass itin> : - TAR<op, flags, (outs GPR:$dst), (ins GPR:$c, GPR:$b), + TAR<op, flags, (outs GPR:$dst), (ins GPR:$b, GPR:$c), !strconcat(instr_asm, " $dst, $c, $b"), [(set GPR:$dst, (OpNode GPR:$b, GPR:$c))], itin>; |