[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / return-column.s
blob8fade82584dd96891fbdc45ccc49baf9820e69ad
1 // REQUIRES: x86-registered-target
2 // RUN: llvm-mc -triple i686-unknown-linux-gnu -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-ASM-ROUNDTRIP
3 // RUN: llvm-mc -triple i686-unknown-linux-gnu -filetype obj -o - %s | llvm-objdump -dwarf=frames - | FileCheck %s -check-prefix CHECK-EH_FRAME
5 .text
7 .section .text.f,"ax",@progbits
8 .global f
9 .type f,@function
11 .cfi_startproc
12 .cfi_return_column 0
13 .cfi_endproc
15 .section .text.g,"ax",@progbits
16 .global g
17 .type g,@function
19 .cfi_startproc
20 .cfi_return_column 65
21 .cfi_endproc
23 .section .text.h,"ax",@progbits
24 .global h
25 .type g,@function
27 .cfi_startproc
28 .cfi_return_column 65
29 .cfi_endproc
31 // CHECK-ASM-ROUNDTRIP-LABEL: f:
32 // CHECK-ASM-ROUNDTRIP: .cfi_startproc
33 // CHECK-ASM-ROUNDTRIP-NEXT: .cfi_return_column 0
34 // CHECK-ASM-ROUNDTRIP: .cfi_endproc
36 // CHECK-EH_FRAME: 00000000 00000014 ffffffff CIE
37 // CHECK-EH_FRAME: Return address column: 0
39 // CHECK-EH_FRAME: 0000002c 00000014 ffffffff CIE
40 // CHECK-EH_FRAME: Return address column: 65
42 // CHECK-EH_FRAME-NOT: ........ 00000014 ffffffff CIE