Add correct encodings for the rest of the vld instructions that we generate.
[oota-llvm.git] / lib / Target / ARM / ARMMCCodeEmitter.cpp
index fcf10ff745e770e572162cd962bb48f81f4b61f3..b3dce29e5c891d4c45c3203a12e8b6a7d1b73e1d 100644 (file)
@@ -305,7 +305,7 @@ unsigned ARMMCCodeEmitter::getAddrMode6RegisterOperand(const MCInst &MI,
   unsigned RegNo = getARMRegisterNumbering(Reg.getReg());
   unsigned Align = Imm.getImm();
   switch(Align) {
-    case 8:  Align = 0x01; break;
+    case 2: case 4: case 8:  Align = 0x01; break;
     case 16: Align = 0x02; break;
     case 32: Align = 0x03; break;
     default: Align = 0x00; break;