1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/MC/ELF/cfi-reg.s
Benjamin Kramer 2c1f1b0513 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.

llvm-svn: 163390
2012-09-07 14:51:35 +00:00

19 lines
335 B
ArmAsm

// 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