Fix a logic error (Division by zero) uncovered by the static analyzer.

A8.6.391 VST1 (multiple single elements)
alignment = if align == '00' then 1 else 4 << UInt(align);

llvm-svn: 137477
This commit is contained in:
Johnny Chen 2011-08-12 17:59:58 +00:00
parent c5798a3a59
commit 7feabf0643
1 changed files with 1 additions and 1 deletions

View File

@ -11640,7 +11640,7 @@ EmulateInstructionARM::EmulateVST1Multiple (const uint32_t opcode, ARMEncoding e
// alignment = if align == Ô00Ő then 1 else 4 << UInt(align);
if (align == 0)
alignment = 0;
alignment = 1;
else
alignment = 4 << align;