1 ; RUN: llvm-ml %s /Fo - | llvm-readobj --section-headers - | FileCheck %s
5 ; CHECK-LABEL: Name: t1
7 ; CHECK: IMAGE_SCN_ALIGN_1BYTES
11 ; CHECK-LABEL: Name: t2
13 ; CHECK: IMAGE_SCN_ALIGN_2BYTES
17 ; CHECK-LABEL: Name: t3
19 ; CHECK: IMAGE_SCN_ALIGN_4BYTES
23 ; CHECK-LABEL: Name: t4
25 ; CHECK: IMAGE_SCN_ALIGN_16BYTES
29 ; CHECK-LABEL: Name: t5
31 ; CHECK: IMAGE_SCN_ALIGN_256BYTES
33 ; Default alignment (should match PARA)
36 ; CHECK-LABEL: Name: t6
38 ; CHECK: IMAGE_SCN_ALIGN_16BYTES
43 ; CHECK-LABEL: Name: t7
45 ; CHECK: IMAGE_SCN_ALIGN_32BYTES
47 t8
SEGMENT ALIAS
('t8_alias')
49 ; CHECK-LABEL: Name: t8_alias
53 ; CHECK-LABEL: Name: t9
55 ; CHECK-DAG: IMAGE_SCN_CNT_INITIALIZED_DATA
56 ; CHECK-DAG: IMAGE_SCN_MEM_READ
57 ; CHECK-DAG: IMAGE_SCN_MEM_WRITE
62 ; CHECK-LABEL: Name: t10
64 ; CHECK-NOT: IMAGE_SCN_MEM_WRITE
65 ; CHECK-DAG: IMAGE_SCN_CNT_CODE
66 ; CHECK-DAG: IMAGE_SCN_MEM_EXECUTE
67 ; CHECK-DAG: IMAGE_SCN_MEM_READ
68 ; CHECK-NOT: IMAGE_SCN_MEM_WRITE
73 ; CHECK-LABEL: Name: t11
75 ; CHECK-DAG: IMAGE_SCN_CNT_INITIALIZED_DATA
76 ; CHECK-DAG: IMAGE_SCN_MEM_READ
77 ; CHECK-DAG: IMAGE_SCN_MEM_WRITE
82 ; CHECK-LABEL: Name: t12
84 ; CHECK-DAG: IMAGE_SCN_CNT_INITIALIZED_DATA
85 ; CHECK-DAG: IMAGE_SCN_MEM_READ
86 ; CHECK-DAG: IMAGE_SCN_MEM_WRITE
89 t13
SEGMENT 'DOESNTEXIST'
91 ; CHECK-LABEL: Name: t13
93 ; CHECK-DAG: IMAGE_SCN_CNT_INITIALIZED_DATA
94 ; CHECK-DAG: IMAGE_SCN_MEM_READ
95 ; CHECK-DAG: IMAGE_SCN_MEM_WRITE
98 t14
SEGMENT READONLY
'CONST'
100 ; CHECK-LABEL: Name: t14
102 ; CHECK-NOT: IMAGE_SCN_MEM_WRITE
103 ; CHECK-DAG: IMAGE_SCN_CNT_INITIALIZED_DATA
104 ; CHECK-DAG: IMAGE_SCN_MEM_READ
105 ; CHECK-NOT: IMAGE_SCN_MEM_WRITE
110 ; CHECK-LABEL: Name: t15
112 ; CHECK-NOT: IMAGE_SCN_MEM_READ
113 ; CHECK-DAG: IMAGE_SCN_CNT_INITIALIZED_DATA
114 ; CHECK-DAG: IMAGE_SCN_MEM_WRITE
115 ; CHECK-NOT: IMAGE_SCN_MEM_READ
118 t16
SEGMENT SHARED NOPAGE NOCACHE INFO READ WRITE EXECUTE DISCARD
120 ; CHECK-LABEL: Name: t16
122 ; CHECK-DAG: IMAGE_SCN_LNK_INFO
123 ; CHECK-DAG: IMAGE_SCN_MEM_READ
124 ; CHECK-DAG: IMAGE_SCN_MEM_WRITE
125 ; CHECK-DAG: IMAGE_SCN_MEM_EXECUTE
126 ; CHECK-DAG: IMAGE_SCN_MEM_SHARED
127 ; CHECK-DAG: IMAGE_SCN_MEM_NOT_PAGED
128 ; CHECK-DAG: IMAGE_SCN_MEM_NOT_CACHED
129 ; CHECK-DAG: IMAGE_SCN_MEM_DISCARDABLE
134 ; CHECK-LABEL: Name: .text
136 ; CHECK-NOT: IMAGE_SCN_MEM_WRITE
137 ; CHECK-DAG: IMAGE_SCN_CNT_CODE
138 ; CHECK-DAG: IMAGE_SCN_MEM_EXECUTE
139 ; CHECK-DAG: IMAGE_SCN_MEM_READ
140 ; CHECK-NOT: IMAGE_SCN_MEM_WRITE