diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-09-07 14:51:35 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-09-07 14:51:35 +0000 |
commit | 8e70b5506ec0d7a6c2740bc89cd1b8f12a78b24f (patch) | |
tree | 7828c88dda37a1004a11baa3183772c693a757c4 /test/MC | |
parent | 38539ebc2b55d2decec2322efd3360bf61f31da1 (diff) | |
download | llvm-8e70b5506ec0d7a6c2740bc89cd1b8f12a78b24f.tar.gz llvm-8e70b5506ec0d7a6c2740bc89cd1b8f12a78b24f.tar.bz2 llvm-8e70b5506ec0d7a6c2740bc89cd1b8f12a78b24f.tar.xz |
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
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ELF/cfi-reg.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/ELF/cfi-reg.s b/test/MC/ELF/cfi-reg.s new file mode 100644 index 0000000000..fd68d6d5ad --- /dev/null +++ b/test/MC/ELF/cfi-reg.s @@ -0,0 +1,18 @@ +// RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -o - | FileCheck %s +// PR13754 + +f: + .cfi_startproc + nop + .cfi_offset 6, -16 + nop + .cfi_offset %rsi, -16 + nop + .cfi_offset rbx, -16 + nop + .cfi_endproc + +// CHECK: f: +// CHECK: .cfi_offset %rbp, -16 +// CHECK: .cfi_offset %rsi, -16 +// CHECK: .cfi_offset %rbx, -16 |