1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
| # RUN: llvm-mc -triple mips-unknown-linux -filetype=obj \
# RUN: -mips-round-section-sizes %s | llvm-readobj --sections | FileCheck %s
.section ".talign1", "ax"
.p2align 4
t1: .byte 1
.section ".talign2", "ax"
.p2align 3
t2: addiu $2, $2, 1
addiu $2, $2, 1
.section ".talign3", "ax"
.p2align 3
t3: addiu $2, $2, 1
.section ".talign4", "ax"
t4: .byte 1
.section ".dalign1", "a"
.p2align 4
d1: .byte 1
.section ".dalign2", "a"
.p2align 3
d2: .word 1
.word 2
.section ".dalign3", "a"
.p2align 3
d3: .word 1
.section ".dalign4", "a"
d4: .byte 1
.section ".dalign5", "a"
.p2align 16
d5: .word 1
.section ".nalign1", ""
.p2align 4
n1: .byte 1
.section ".nalign2", ""
.p2align 3
n2: .word 1
.word 2
.section ".nalign3", ""
.p2align 3
n3: .word 1
.section ".nalign4", ""
n4: .byte 1
# CHECK-LABEL: Name: .talign1
# CHECK: Size: 16
# CHECK: AddressAlignment: 16
# CHECK-LABEL: }
# CHECK-LABEL: Name: .talign2
# CHECK: Size: 8
# CHECK: AddressAlignment: 8
# CHECK-LABEL: }
# CHECK-LABEL: Name: .talign3
# CHECK: Size: 8
# CHECK: AddressAlignment: 8
# CHECK-LABEL: }
# CHECK-LABEL: Name: .talign4
# CHECK: Size: 1
# CHECK: AddressAlignment: 1
# CHECK-LABEL: }
# CHECK-LABEL: Name: .dalign1
# CHECK: Size: 16
# CHECK: AddressAlignment: 16
# CHECK-LABEL: }
# CHECK-LABEL: Name: .dalign2
# CHECK: Size: 8
# CHECK: AddressAlignment: 8
# CHECK-LABEL: }
# CHECK-LABEL: Name: .dalign3
# CHECK: Size: 8
# CHECK: AddressAlignment: 8
# CHECK-LABEL: }
# CHECK-LABEL: Name: .dalign4
# CHECK: Size: 1
# CHECK: AddressAlignment: 1
# CHECK-LABEL: }
# CHECK-LABEL: Name: .dalign5
# CHECK: Size: 65536
# CHECK: AddressAlignment: 65536
# CHECK-LABEL: }
# CHECK-LABEL: Name: .nalign1
# CHECK: Size: 16
# CHECK: AddressAlignment: 16
# CHECK-LABEL: }
# CHECK-LABEL: Name: .nalign2
# CHECK: Size: 8
# CHECK: AddressAlignment: 8
# CHECK-LABEL: }
# CHECK-LABEL: Name: .nalign3
# CHECK: Size: 8
# CHECK: AddressAlignment: 8
# CHECK-LABEL: }
# CHECK-LABEL: Name: .nalign4
# CHECK: Size: 1
# CHECK: AddressAlignment: 1
# CHECK-LABEL: }
|