MC: Improve the .fill directive's compatibility with GAS
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 1 Feb 2014 07:19:38 +0000 (07:19 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 1 Feb 2014 07:19:38 +0000 (07:19 +0000)
commite18fc7bc2d947abc4ab6c07a0efbb6285ed404d2
tree352b153164b57fcbc8d49f917ec2f900ca3aabee
parent69a0d80f55a0994ee857415bcc348d6d54c9ec1a
MC: Improve the .fill directive's compatibility with GAS

Per the GAS documentation, .fill should permit pattern widths that
aren't a power of two. While I was in the neighborhood, I added some
sanity checking. This change was motivated by a use of this construct
in the Linux Kernel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200606 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCAsmStreamer.cpp
lib/MC/MCParser/AsmParser.cpp
test/MC/AsmParser/directive_fill.s