Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / MC / ELF / align-nops.s
blobd29cb5b5e31603df105cc882c7e04565618c2a4d
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s
3 // Test that we get optimal nops in text
4 .text
5 f0:
6 .long 0
7 .align 8, 0x00000090
8 .long 0
9 .align 8
11 // But not in another section
12 .data
13 .long 0
14 .align 8, 0x00000090
15 .long 0
16 .align 8
18 // CHECK: (('sh_name', 0x00000001) # '.text'
19 // CHECK-NEXT: ('sh_type', 0x00000001)
20 // CHECK-NEXT: ('sh_flags', 0x00000006)
21 // CHECK-NEXT: ('sh_addr',
22 // CHECK-NEXT: ('sh_offset',
23 // CHECK-NEXT: ('sh_size', 0x00000010)
24 // CHECK-NEXT: ('sh_link', 0x00000000)
25 // CHECK-NEXT: ('sh_info', 0x00000000)
26 // CHECK-NEXT: ('sh_addralign', 0x00000008)
27 // CHECK-NEXT: ('sh_entsize', 0x00000000)
28 // CHECK-NEXT: ('_section_data', '00000000 0f1f4000 00000000 0f1f4000')
30 // CHECK: (('sh_name', 0x00000026) # '.data'
31 // CHECK-NEXT: ('sh_type', 0x00000001)
32 // CHECK-NEXT: ('sh_flags', 0x00000003)
33 // CHECK-NEXT: ('sh_addr',
34 // CHECK-NEXT: ('sh_offset',
35 // CHECK-NEXT: ('sh_size', 0x00000010)
36 // CHECK-NEXT: ('sh_link', 0x00000000)
37 // CHECK-NEXT: ('sh_info', 0x00000000)
38 // CHECK-NEXT: ('sh_addralign', 0x00000008)
39 // CHECK-NEXT: ('sh_entsize', 0x00000000)
40 // CHECK-NEXT: ('_section_data', '00000000 90909090 00000000 00000000')