[MC/ELF] Accept zero for .align directive
authorDavide Italiano <davide@freebsd.org>
Tue, 8 Sep 2015 18:59:47 +0000 (18:59 +0000)
committerDavide Italiano <davide@freebsd.org>
Tue, 8 Sep 2015 18:59:47 +0000 (18:59 +0000)
commit5bd1a50ca220d9a2280b9639da57284ad30961ab
tree524dddc6ed00b26ea88b300df80a70219cbdf0dc
parent46f5c11bedb8e6ef1f9e540e99cf1495557d99da
[MC/ELF] Accept zero for .align directive

.align directive refuses alignment 0 -- a comment in the code hints this is
done for GNU as compatibility, but it seems GNU as accepts .align 0
(and silently rounds up alignment to 1).

Differential Revision:  http://reviews.llvm.org/D12682

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