MCParser: Reject .balign with non-pow2 alignments.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 16 Feb 2013 15:00:16 +0000 (15:00 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 16 Feb 2013 15:00:16 +0000 (15:00 +0000)
commit8a89cf233dcb3359c8649febefb4c38246f2acb4
tree3863b01e39f7f89d0ab85942a4464ff48ddb4aeb
parent30fcfc39e2abdb7765c282e8c9d4c63c3d4f83b1
MCParser: Reject .balign with non-pow2 alignments.

GNU as rejects them and there are configure scripts in the wild that check if
the assembler rejects ".align 3" to determine whether the alignment is in bytes
or powers of two.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175360 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
test/MC/AsmParser/align_invalid.s [new file with mode: 0644]