1 ; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
7 ; CHECK-LABEL: align_test:
8 ; CHECK-NEXT: .p2align 4
12 ; CHECK-LABEL: org_test:
13 ; CHECK-NEXT: .org 256, 0
34 struct_align_data ALIGN_STRUCT
<101, 102, 103, 104, 105, 106, 107, 108>
35 ; CHECK-LABEL: struct_align_data:
36 ; CHECK-NEXT: .byte 101
38 ; CHECK-NEXT: .byte 102
39 ; CHECK-NEXT: .byte 103
40 ; CHECK-NEXT: .byte 104
42 ; CHECK-NEXT: .byte 105
43 ; CHECK-NEXT: .byte 106
44 ; CHECK-NEXT: .byte 107
46 ; CHECK-NEXT: .byte 108
61 struct_align_test
PROC
64 MOV eax, align_struct.x
65 MOV eax, align_struct.x_succ
66 ; CHECK-LABEL: x_align_test:
67 ; CHECK-NEXT: mov eax, 4
68 ; CHECK-NEXT: mov eax, 5
71 MOV eax, align_struct.y
72 MOV eax, align_struct.y_succ
73 ; CHECK-LABEL: y_align_test:
74 ; CHECK-NEXT: mov eax, 8
75 ; CHECK-NEXT: mov eax, 9
78 MOV eax, align_struct.z
79 ; CHECK-LABEL: z_align_test:
80 ; CHECK-NEXT: mov eax, 10
83 MOV eax, align_struct.q
84 ; CHECK-LABEL: q_even_test:
85 ; CHECK-NEXT: mov eax, 12
88 MOV eax, SIZEOF
(align_struct
)
89 ; CHECK-LABEL: size_align_test:
90 ; CHECK-NEXT: mov eax, 13
93 struct_align_test
ENDP
96 ; CHECK-LABEL: struct_org_test:
100 MOV eax, org_struct.x_succ
101 MOV eax, org_struct.y
102 MOV eax, org_struct.y_succ
103 MOV eax, org_struct.z
104 MOV eax, org_struct.z_succ
105 ; CHECK-LABEL: field_positions:
106 ; CHECK-NEXT: mov eax, 0
107 ; CHECK-NEXT: mov eax, 1
108 ; CHECK-NEXT: mov eax, 15
109 ; CHECK-NEXT: mov eax, 16
110 ; CHECK-NEXT: mov eax, 2
111 ; CHECK-NEXT: mov eax, 3