[llvm-commits] [llvm] r129432 - in /llvm/trunk: lib/Target/TargetData.cpp test/CodeGen/ARM/2011-04-12-AlignBug.ll

Renato Golin renato.golin at arm.com
Wed Apr 13 03:51:44 PDT 2011


On 13 April 2011 10:39, Cameron Zwarich <zwarich at apple.com> wrote:
>> shouldn't alignment be a power of 2?
>
> The align assembler directive on ARM uses the number of leading 0 bits of the address, not the byte alignment.

AFAIK .align is an alias to .balign and it should indeed be a power of
2, as it is the byte alignment of the data to follow.

Unless this is not what you're looking for, obviously.

Anyway, you should be more verbose in the CHECK, to make sure you
don't match against possible comments or other text in the assembly
output.

cheers,
--renato



More information about the llvm-commits mailing list