Revert "[InstCombine] Support gep nuw in icmp folds" (#118698)
[llvm-project.git] / llvm / test / MC / ELF / section-combine.s
bloba6da8581a056e04c07e67daa27d3eaac26d5629e
1 ## Sections are differentiated by the quadruple
2 ## (section_name, group_name, unique_id, link_to_symbol_name).
3 ## Sections sharing the same quadruple are combined into one section.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
6 # RUN: llvm-readelf -x .foo %t | FileCheck %s
8 # CHECK: Hex dump of section '.foo':
9 # CHECK-NEXT: 0x00000000 00
10 # CHECK: Hex dump of section '.foo':
11 # CHECK-NEXT: 0x00000000 0102
12 # CHECK: Hex dump of section '.foo':
13 # CHECK-NEXT: 0x00000000 03
14 # CHECK: Hex dump of section '.foo':
15 # CHECK-NEXT: 0x00000000 0405
16 # CHECK: Hex dump of section '.foo':
17 # CHECK-NEXT: 0x00000000 06
18 # CHECK: Hex dump of section '.foo':
19 # CHECK-NEXT: 0x00000000 0708
21 foo:
22 bar:
24 ## foo and bar are in the same section. However, a section referencing foo
25 ## is considered different from a section referencing bar.
26 .section .foo,"o",@progbits,foo
27 .byte 0
29 .section .foo,"o",@progbits,bar
30 .byte 1
31 .section .foo,"o",@progbits,bar
32 .byte 2
34 .section .foo,"o",@progbits,bar,unique,0
35 .byte 3
37 .section .foo,"o",@progbits,bar,unique,1
38 .byte 4
39 .section .foo,"o",@progbits,bar,unique,1
40 .byte 5
42 .section .foo,"Go",@progbits,bar,comdat0,comdat,unique,1
43 .byte 6
45 .section .foo,"Go",@progbits,bar,comdat1,comdat,unique,1
46 .byte 7
47 .section .foo,"oG",@progbits,bar,comdat1,comdat,unique,1
48 .byte 8