[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / gnux32-dwarf-gen.s
blob61ddaebaaed51189344e475ef4b5c088f8f96631
1 # RUN: llvm-mc -g -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.64
2 # RUN: llvm-dwarfdump -debug-info %t.64 | FileCheck -check-prefix=DEFAULTABI %s
4 # RUN: llvm-mc -g -filetype=obj -triple x86_64-pc-linux-gnux32 %s -o %t.32
5 # RUN: llvm-dwarfdump -debug-info %t.32 | FileCheck -check-prefix=X32ABI %s
7 # This test checks the dwarf info section emitted to the output object by the
8 # assembler, looking at the difference between the x32 ABI and default x86-64
9 # ABI.
11 # DEFAULTABI: addr_size = 0x08
12 # X32ABI: addr_size = 0x04
14 .globl _bar
15 _bar:
16 movl $0, %eax
17 L1: leave
18 ret
19 _foo:
20 _baz:
21 nop
22 .data
23 _x: .long 1