PR13754: llvm-mc/x86 crashes on .cfi directives without the % prefix for registers.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 7 Sep 2012 14:51:35 +0000 (14:51 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 7 Sep 2012 14:51:35 +0000 (14:51 +0000)
commit8e70b5506ec0d7a6c2740bc89cd1b8f12a78b24f
tree7828c88dda37a1004a11baa3183772c693a757c4
parent38539ebc2b55d2decec2322efd3360bf61f31da1
PR13754: llvm-mc/x86 crashes on .cfi directives without the % prefix for registers.

gas accepts this and it seems to be common enough to be worth supporting. This
doesn't affect the parsing of reg operands outside of .cfi directives.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163390 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/ELF/cfi-reg.s [new file with mode: 0644]