[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / subsection.s
blobd437cacf63473fe0f0b64d6c1c4abf294d679672
1 // RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-objdump -s - | FileCheck %s
3 // CHECK: Contents of section .text:
4 // CHECK-NEXT: 0000 03042502 00000003 04250100 0000ebf7
5 .text 1
6 add 1, %eax
7 jmp label
8 .subsection
9 add 2, %eax
10 label:
12 // CHECK-NOT: Contents of section .rela.text:
14 // CHECK: Contents of section .data:
15 // CHECK-NEXT: 0000 01030402 74657374
16 .data
17 l0:
18 .byte 1
19 .subsection 1+1
20 l1:
21 .byte 2
22 l2:
23 .subsection l2-l1
24 .byte l1-l0
25 .subsection 3
26 .ascii "test"
27 .previous
28 .byte 4
30 // CHECK: Contents of section test:
31 // CHECK-NEXT: 0000 010302
32 .section test
33 .byte 1
34 .pushsection test, 1
35 .byte 2
36 .popsection
37 .byte 3