diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-09-09 23:55:03 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-09-09 23:55:03 +0000 |
commit | 71140344f0b6e8e3f50d3725ae8967b707e6b2ef (patch) | |
tree | 28a6fe7ef672b1b6e43154bdd0b6a733426a0048 /llvm | |
parent | d747a9f21f87418b7d257ccd6aaaa1f7419dab87 (diff) | |
download | bcm5719-llvm-71140344f0b6e8e3f50d3725ae8967b707e6b2ef.tar.gz bcm5719-llvm-71140344f0b6e8e3f50d3725ae8967b707e6b2ef.zip |
Fix double load / store multiple encoding.
llvm-svn: 81403
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Target/ARM/ARMCodeEmitter.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrFormats.td | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp index 37e2cfc09de..d6092fa127f 100644 --- a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp @@ -949,7 +949,7 @@ static unsigned getAddrModeUPBits(unsigned Mode) { // DB - Decrement before - bit U = 0 and bit P = 1 switch (Mode) { default: llvm_unreachable("Unknown addressing sub-mode!"); - case ARM_AM::da: break; + case ARM_AM::da: break; case ARM_AM::db: Binary |= 0x1 << ARMII::P_BitShift; break; case ARM_AM::ia: Binary |= 0x1 << ARMII::U_BitShift; break; case ARM_AM::ib: Binary |= 0x3 << ARMII::U_BitShift; break; diff --git a/llvm/lib/Target/ARM/ARMInstrFormats.td b/llvm/lib/Target/ARM/ARMInstrFormats.td index 62e64dbc0f2..5388197c3be 100644 --- a/llvm/lib/Target/ARM/ARMInstrFormats.td +++ b/llvm/lib/Target/ARM/ARMInstrFormats.td @@ -1070,7 +1070,7 @@ class ASI5<bits<4> opcod1, bits<2> opcod2, dag oops, dag iops, } // Load / store multiple -class AXSI5<dag oops, dag iops, InstrItinClass itin, +class AXDI5<dag oops, dag iops, InstrItinClass itin, string asm, list<dag> pattern> : VFPXI<oops, iops, AddrMode5, Size4Bytes, IndexModeNone, VFPLdStMulFrm, itin, asm, "", pattern> { @@ -1079,7 +1079,7 @@ class AXSI5<dag oops, dag iops, InstrItinClass itin, let Inst{11-8} = 0b1011; } -class AXDI5<dag oops, dag iops, InstrItinClass itin, +class AXSI5<dag oops, dag iops, InstrItinClass itin, string asm, list<dag> pattern> : VFPXI<oops, iops, AddrMode5, Size4Bytes, IndexModeNone, VFPLdStMulFrm, itin, asm, "", pattern> { @@ -1088,7 +1088,6 @@ class AXDI5<dag oops, dag iops, InstrItinClass itin, let Inst{11-8} = 0b1010; } - // Double precision, unary class ADuI<bits<8> opcod1, bits<4> opcod2, bits<4> opcod3, dag oops, dag iops, InstrItinClass itin, string opc, string asm, list<dag> pattern> |