1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s 2 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 10 11 // But not in another section 12 .data 13 .long 0 14 .align 8, 0x00000090 15 .long 0 16 .align 8 17 18 // CHECK: (('sh_name', 0x00000001) # '.text' 19 // CHECK-NEXT: ('sh_type', 0x00000001) 20 // CHECK-NEXT: ('sh_flags', 0x0000000000000006) 21 // CHECK-NEXT: ('sh_addr', 22 // CHECK-NEXT: ('sh_offset', 23 // CHECK-NEXT: ('sh_size', 0x0000000000000010) 24 // CHECK-NEXT: ('sh_link', 0x00000000) 25 // CHECK-NEXT: ('sh_info', 0x00000000) 26 // CHECK-NEXT: ('sh_addralign', 0x0000000000000008) 27 // CHECK-NEXT: ('sh_entsize', 0x0000000000000000) 28 // CHECK-NEXT: ('_section_data', '00000000 0f1f4000 00000000 0f1f4000') 29 30 // CHECK: (('sh_name', 0x00000026) # '.data' 31 // CHECK-NEXT: ('sh_type', 0x00000001) 32 // CHECK-NEXT: ('sh_flags', 0x0000000000000003) 33 // CHECK-NEXT: ('sh_addr', 34 // CHECK-NEXT: ('sh_offset', 35 // CHECK-NEXT: ('sh_size', 0x0000000000000010) 36 // CHECK-NEXT: ('sh_link', 0x00000000) 37 // CHECK-NEXT: ('sh_info', 0x00000000) 38 // CHECK-NEXT: ('sh_addralign', 0x0000000000000008) 39 // CHECK-NEXT: ('sh_entsize', 0x0000000000000000) 40 // CHECK-NEXT: ('_section_data', '00000000 90909090 00000000 00000000') 41