1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test/CodeGen/MIR/X86/large-cfi-offset-number-error.mir
Alex Lorenz d54c1a6d40 MIR Serialization: Start serializing the CFI operands with .cfi_def_cfa_offset.
This commit begins serialization of the CFI index machine operands by
serializing one kind of CFI instruction - the .cfi_def_cfa_offset instruction.

Reviewers: Duncan P. N. Exon Smith
llvm-svn: 242845
2015-07-21 22:28:27 +00:00

30 lines
750 B
YAML

# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
--- |
define void @test() {
entry:
%tmp = alloca [4168 x i8], align 4
ret void
}
...
---
name: test
tracksRegLiveness: true
frameInfo:
stackSize: 4040
stack:
- { id: 0, name: tmp, offset: -4176, size: 4168, alignment: 4 }
body:
- id: 0
name: entry
instructions:
- '%rsp = SUB64ri32 %rsp, 4040, implicit-def dead %eflags'
# CHECK: [[@LINE+1]]:46: expected a 32 bit integer (the cfi offset is too large)
- 'CFI_INSTRUCTION .cfi_def_cfa_offset 123456789123456'
- '%rsp = ADD64ri32 %rsp, 4040, implicit-def dead %eflags'
- 'RETQ'
...