Skip to content

Commit bf060da

Browse files
committed
Merge 81403 from mainline.
Fix double load / store multiple encoding. llvm-svn: 81641
1 parent aea2a46 commit bf060da

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

llvm/lib/Target/ARM/ARMCodeEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ static unsigned getAddrModeUPBits(unsigned Mode) {
963963
// DB - Decrement before - bit U = 0 and bit P = 1
964964
switch (Mode) {
965965
default: llvm_unreachable("Unknown addressing sub-mode!");
966-
case ARM_AM::da: break;
966+
case ARM_AM::da: break;
967967
case ARM_AM::db: Binary |= 0x1 << ARMII::P_BitShift; break;
968968
case ARM_AM::ia: Binary |= 0x1 << ARMII::U_BitShift; break;
969969
case ARM_AM::ib: Binary |= 0x3 << ARMII::U_BitShift; break;

llvm/lib/Target/ARM/ARMInstrFormats.td

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ class ASI5<bits<4> opcod1, bits<2> opcod2, dag oops, dag iops,
10701070
}
10711071

10721072
// Load / store multiple
1073-
class AXSI5<dag oops, dag iops, InstrItinClass itin,
1073+
class AXDI5<dag oops, dag iops, InstrItinClass itin,
10741074
string asm, list<dag> pattern>
10751075
: VFPXI<oops, iops, AddrMode5, Size4Bytes, IndexModeNone,
10761076
VFPLdStMulFrm, itin, asm, "", pattern> {
@@ -1079,7 +1079,7 @@ class AXSI5<dag oops, dag iops, InstrItinClass itin,
10791079
let Inst{11-8} = 0b1011;
10801080
}
10811081

1082-
class AXDI5<dag oops, dag iops, InstrItinClass itin,
1082+
class AXSI5<dag oops, dag iops, InstrItinClass itin,
10831083
string asm, list<dag> pattern>
10841084
: VFPXI<oops, iops, AddrMode5, Size4Bytes, IndexModeNone,
10851085
VFPLdStMulFrm, itin, asm, "", pattern> {
@@ -1088,7 +1088,6 @@ class AXDI5<dag oops, dag iops, InstrItinClass itin,
10881088
let Inst{11-8} = 0b1010;
10891089
}
10901090

1091-
10921091
// Double precision, unary
10931092
class ADuI<bits<8> opcod1, bits<4> opcod2, bits<4> opcod3, dag oops, dag iops,
10941093
InstrItinClass itin, string opc, string asm, list<dag> pattern>

0 commit comments

Comments
 (0)