[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / llvm / test / MC / AArch64 / mapping-across-sections.s
blobe688c770cc960d2e0eb41b721df7452fed9215db
1 // RUN: llvm-mc -triple=aarch64 -filetype=obj %s | llvm-objdump -t - | FileCheck %s --match-full-lines
2 // RUN: llvm-mc -triple=aarch64 -filetype=obj -implicit-mapsyms %s | llvm-objdump -t - | FileCheck %s --check-prefix=CHECK1 --match-full-lines
4 /// The test covers many state transitions. Let's use the first state and the last state to describe a section.
5 /// .text goes through cd -> dd -> cc -> dd.
6 /// .data goes through dd -> dc -> cd.
7 .file "0.s"
8 .section .text1,"ax"
9 add w0, w0, w0
11 .text
12 add w0, w0, w0
13 .word 42
15 .pushsection .data,"aw"
16 .word 42
17 .popsection
19 .text
20 .word 42
22 .section .text1,"ax"
23 add w1, w1, w1
25 .text
26 add w1, w1, w1
28 .section .data,"aw"
29 .word 42
30 add w0, w0, w0
32 .text
33 .word 42
35 ## .rodata and subsequent symbols should be after the FILE symbol of "1.s".
36 .file "1.s"
37 .section .rodata,"a"
38 .word 42
39 add w0, w0, w0
41 .section .data,"aw"
42 add w0, w0, w0
43 .word 42
45 .text
47 .ident "clang"
48 .section ".note.GNU-stack","",@progbits
50 // CHECK: SYMBOL TABLE:
51 // CHECK-NEXT: 0000000000000000 l df *ABS* 0000000000000000 0.s
52 // CHECK-NEXT: 0000000000000000 l .text1 0000000000000000 $x
53 // CHECK-NEXT: 0000000000000000 l .text 0000000000000000 $x
54 // CHECK-NEXT: 0000000000000004 l .text 0000000000000000 $d
55 // CHECK-NEXT: 0000000000000000 l .data 0000000000000000 $d
56 // CHECK-NEXT: 000000000000000c l .text 0000000000000000 $x
57 // CHECK-NEXT: 0000000000000008 l .data 0000000000000000 $x
58 // CHECK-NEXT: 0000000000000010 l .text 0000000000000000 $d
59 // CHECK-NEXT: 0000000000000000 l df *ABS* 0000000000000000 1.s
60 // CHECK-NEXT: 0000000000000000 l .rodata 0000000000000000 $d
61 // CHECK-NEXT: 0000000000000004 l .rodata 0000000000000000 $x
62 // CHECK-NEXT: 0000000000000010 l .data 0000000000000000 $d
63 // CHECK-NEXT: 0000000000000000 l .comment 0000000000000000 $d
64 // CHECK-NOT: {{.}}
66 // CHECK1: SYMBOL TABLE:
67 // CHECK1-NEXT: 0000000000000000 l df *ABS* 0000000000000000 0.s
68 // CHECK1-NEXT: 0000000000000004 l .text 0000000000000000 $d
69 // CHECK1-NEXT: 000000000000000c l .text 0000000000000000 $x
70 // CHECK1-NEXT: 0000000000000008 l .data 0000000000000000 $x
71 // CHECK1-NEXT: 0000000000000010 l .text 0000000000000000 $d
72 // CHECK1-NEXT: 0000000000000014 l .text 0000000000000000 $x
73 // CHECK1-NEXT: 0000000000000000 l df *ABS* 0000000000000000 1.s
74 // CHECK1-NEXT: 0000000000000004 l .rodata 0000000000000000 $x
75 // CHECK1-NEXT: 0000000000000008 l .rodata 0000000000000000 $d
76 // CHECK1-NEXT: 0000000000000010 l .data 0000000000000000 $d
77 // CHECK1-NOT: {{.}}