4
4
int test_builtin_clrsb (int x) {
5
5
return __builtin_clrsb (x);
6
6
}
7
- // CIR-LABEL: test_builtin_clrsb
8
- // CIR: %{{.+}} = cir.bit.clrsb(%{{.+}} : !s32i) : !s32i
7
+
8
+ // CIR: cir.func @_Z18test_builtin_clrsbi
9
+ // CIR: %{{.+}} = cir.bit.clrsb(%{{.+}} : !s32i) : !s32i
10
+ // CIR: }
9
11
10
12
int test_builtin_clrsbl (long x) {
11
13
return __builtin_clrsbl (x);
12
14
}
13
- // CIR-LABEL: test_builtin_clrsbl
14
- // CIR: [[tmp:%.+]] = cir.bit.clrsb({{%.+}} : !s64i) : !s64i
15
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !s64i), !s32i
15
+
16
+ // CIR: cir.func @_Z19test_builtin_clrsbll
17
+ // CIR: %{{.+}} = cir.bit.clrsb(%{{.+}} : !s64i) : !s32i
18
+ // CIR: }
16
19
17
20
int test_builtin_clrsbll (long long x) {
18
21
return __builtin_clrsbll (x);
19
22
}
20
- // CIR-LABEL: test_builtin_clrsbll
21
- // CIR: [[tmp:%.+]] = cir.bit.clrsb(%{{.+}} : !s64i) : !s64i
22
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !s64i), !s32i
23
+
24
+ // CIR: cir.func @_Z20test_builtin_clrsbllx
25
+ // CIR: %{{.+}} = cir.bit.clrsb(%{{.+}} : !s64i) : !s32i
26
+ // CIR: }
23
27
24
28
int test_builtin_ctzs (unsigned short x) {
25
29
return __builtin_ctzs (x);
26
30
}
27
- // CIR-LABEL: test_builtin_ctzs
28
- // CIR: [[tmp:%.+]] = cir.bit.ctz(%{{.+}} : !u16i) : !u16i
29
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u16i), !s32i
31
+
32
+ // CIR: cir.func @_Z17test_builtin_ctzst
33
+ // CIR: %{{.+}} = cir.bit.ctz(%{{.+}} : !u16i) : !s32i
34
+ // CHEKC: }
30
35
31
36
int test_builtin_ctz (unsigned x) {
32
37
return __builtin_ctz (x);
33
38
}
34
- // CIR-LABEL: test_builtin_ctz
35
- // CIR: [[tmp:%.+]] = cir.bit.ctz(%{{.+}} : !u32i) : !u32i
36
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u32i), !s32i
39
+
40
+ // CIR: cir.func @_Z16test_builtin_ctzj
41
+ // CIR: %{{.+}} = cir.bit.ctz(%{{.+}} : !u32i) : !s32i
42
+ // CIR: }
37
43
38
44
int test_builtin_ctzl (unsigned long x) {
39
45
return __builtin_ctzl (x);
40
46
}
41
- // CIR-LABEL: test_builtin_ctzl
42
- // CIR: [[tmp:%.+]] = cir.bit.ctz(%{{.+}} : !u64i) : !u64i
43
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u64i), !s32i
47
+
48
+ // CIR: cir.func @_Z17test_builtin_ctzlm
49
+ // CIR: %{{.+}} = cir.bit.ctz(%{{.+}} : !u64i) : !s32i
50
+ // CIR: }
44
51
45
52
int test_builtin_ctzll (unsigned long long x) {
46
53
return __builtin_ctzll (x);
47
54
}
48
- // CIR-LABEL: test_builtin_ctzll
49
- // CIR: [[tmp:%.+]] = cir.bit.ctz(%{{.+}} : !u64i) : !u64i
50
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u64i), !s32i
55
+
56
+ // CIR: cir.func @_Z18test_builtin_ctzlly
57
+ // CIR: %{{.+}} = cir.bit.ctz(%{{.+}} : !u64i) : !s32i
58
+ // CIR: }
51
59
52
60
int test_builtin_ctzg (unsigned x) {
53
61
return __builtin_ctzg (x);
54
62
}
55
- // CIR-LABEL: test_builtin_ctzg
56
- // CIR: [[tmp:%.+]] = cir.bit.ctz(%{{.+}} : !u32i) : !u32i
57
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u32i), !s32i
63
+
64
+ // CIR: cir.func @_Z17test_builtin_ctzgj
65
+ // CIR: %{{.+}} = cir.bit.ctz(%{{.+}} : !u32i) : !s32i
66
+ // CIR: }
58
67
59
68
int test_builtin_clzs (unsigned short x) {
60
69
return __builtin_clzs (x);
61
70
}
62
- // CIR-LABEL: test_builtin_clzs
63
- // CIR: [[tmp:%.+]] = cir.bit.clz(%{{.+}} : !u16i) : !u16i
64
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u16i), !s32i
71
+
72
+ // CIR: cir.func @_Z17test_builtin_clzst
73
+ // CIR: %{{.+}} = cir.bit.clz(%{{.+}} : !u16i) : !s32i
74
+ // CIR: }
65
75
66
76
int test_builtin_clz (unsigned x) {
67
77
return __builtin_clz (x);
68
78
}
69
- // CIR-LABEL: cir.func @_Z16test_builtin_clz
70
- // CIR: [[tmp:%.+]] = cir.bit.clz(%{{.+}} : !u32i) : !u32i
71
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u32i), !s32i
79
+
80
+ // CIR: cir.func @_Z16test_builtin_clzj
81
+ // CIR: %{{.+}} = cir.bit.clz(%{{.+}} : !u32i) : !s32i
82
+ // CIR: }
72
83
73
84
int test_builtin_clzl (unsigned long x) {
74
85
return __builtin_clzl (x);
75
86
}
76
- // CIR-LABEL: test_builtin_clzl
77
- // CIR: [[tmp:%.+]] = cir.bit.clz(%{{.+}} : !u64i) : !u64i
78
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u64i), !s32i
87
+
88
+ // CIR: cir.func @_Z17test_builtin_clzlm
89
+ // CIR: %{{.+}} = cir.bit.clz(%{{.+}} : !u64i) : !s32i
90
+ // CIR: }
79
91
80
92
int test_builtin_clzll (unsigned long long x) {
81
93
return __builtin_clzll (x);
82
94
}
83
- // CIR-LABEL: test_builtin_clzll
84
- // CIR: [[tmp:%.+]] = cir.bit.clz(%{{.+}} : !u64i) : !u64i
85
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u64i), !s32i
95
+
96
+ // CIR: cir.func @_Z18test_builtin_clzlly
97
+ // CIR: %{{.+}} = cir.bit.clz(%{{.+}} : !u64i) : !s32i
98
+ // CIR: }
86
99
87
100
int test_builtin_clzg (unsigned x) {
88
101
return __builtin_clzg (x);
89
102
}
90
- // CIR-LABEL: test_builtin_clz
91
- // CIR: [[tmp:%.+]] = cir.bit.clz(%{{.+}} : !u32i) : !u32i
92
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u32i), !s32i
103
+
104
+ // CIR: cir.func @_Z17test_builtin_clzgj
105
+ // CIR: %{{.+}} = cir.bit.clz(%{{.+}} : !u32i) : !s32i
106
+ // CIR: }
93
107
94
108
int test_builtin_ffs (int x) {
95
109
return __builtin_ffs (x);
96
110
}
97
- // CIR-LABEL: test_builtin_ffs
98
- // CIR: [[tmp:%.+]] = cir.bit.ffs(%{{.+}} : !s32i) : !s32i
111
+
112
+ // CIR: cir.func @_Z16test_builtin_ffsi
113
+ // CIR: %{{.+}} = cir.bit.ffs(%{{.+}} : !s32i) : !s32i
114
+ // CIR: }
99
115
100
116
int test_builtin_ffsl (long x) {
101
117
return __builtin_ffsl (x);
102
118
}
103
- // CIR-LABEL: test_builtin_ffsl
104
- // CIR: [[tmp:%.+]] = cir.bit.ffs(%{{.+}} : !s64i) : !s64i
105
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !s64i), !s32i
119
+
120
+ // CIR: cir.func @_Z17test_builtin_ffsll
121
+ // CIR: %{{.+}} = cir.bit.ffs(%{{.+}} : !s64i) : !s32i
122
+ // CIR: }
106
123
107
124
int test_builtin_ffsll (long long x) {
108
125
return __builtin_ffsll (x);
109
126
}
110
- // CIR-LABEL: test_builtin_ffsll
111
- // CIR: [[tmp:%.+]] = cir.bit.ffs(%{{.+}} : !s64i) : !s64i
112
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !s64i), !s32i
127
+
128
+ // CIR: cir.func @_Z18test_builtin_ffsllx
129
+ // CIR: %{{.+}} = cir.bit.ffs(%{{.+}} : !s64i) : !s32i
130
+ // CIR: }
113
131
114
132
int test_builtin_parity (unsigned x) {
115
133
return __builtin_parity (x);
116
134
}
117
- // CIR-LABEL: test_builtin_parity
118
- // CIR: [[tmp:%.+]] = cir.bit.parity(%{{.+}} : !u32i) : !u32i
119
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u32i), !s32i
135
+
136
+ // CIR: cir.func @_Z19test_builtin_parityj
137
+ // CIR: %{{.+}} = cir.bit.parity(%{{.+}} : !u32i) : !s32i
138
+ // CIR: }
120
139
121
140
int test_builtin_parityl (unsigned long x) {
122
141
return __builtin_parityl (x);
123
142
}
124
- // CIR-LABEL: test_builtin_parityl
125
- // CIR: [[tmp:%.+]] = cir.bit.parity(%{{.+}} : !u64i) : !u64i
126
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u64i), !s32i
143
+
144
+ // CIR: cir.func @_Z20test_builtin_paritylm
145
+ // CIR: %{{.+}} = cir.bit.parity(%{{.+}} : !u64i) : !s32i
146
+ // CIR: }
127
147
128
148
int test_builtin_parityll (unsigned long long x) {
129
149
return __builtin_parityll (x);
130
150
}
131
- // CIR-LABEL: test_builtin_parityll
132
- // CIR: [[tmp:%.+]] = cir.bit.parity(%{{.+}} : !u64i) : !u64i
133
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u64i), !s32i
151
+
152
+ // CIR: cir.func @_Z21test_builtin_paritylly
153
+ // CIR: %{{.+}} = cir.bit.parity(%{{.+}} : !u64i) : !s32i
154
+ // CIR: }
134
155
135
156
int test_builtin_popcount (unsigned x) {
136
157
return __builtin_popcount (x);
137
158
}
138
- // CIR-LABEL: test_builtin_popcount
139
- // CIR: [[tmp:%.+]] = cir.bit.popcount(%{{.+}} : !u32i) : !u32i
140
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u32i), !s32i
159
+
160
+ // CIR: cir.func @_Z21test_builtin_popcountj
161
+ // CIR: %{{.+}} = cir.bit.popcount(%{{.+}} : !u32i) : !s32i
162
+ // CIR: }
141
163
142
164
int test_builtin_popcountl (unsigned long x) {
143
165
return __builtin_popcountl (x);
144
166
}
145
- // CIR-LABEL: test_builtin_popcountl
146
- // CIR: [[tmp:%.+]] = cir.bit.popcount(%{{.+}} : !u64i) : !u64i
147
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u64i), !s32i
167
+
168
+ // CIR: cir.func @_Z22test_builtin_popcountlm
169
+ // CIR: %{{.+}} = cir.bit.popcount(%{{.+}} : !u64i) : !s32i
170
+ // CIR: }
148
171
149
172
int test_builtin_popcountll (unsigned long long x) {
150
173
return __builtin_popcountll (x);
151
174
}
152
- // CIR-LABEL: test_builtin_popcountll
153
- // CIR: [[tmp:%.+]] = cir.bit.popcount(%{{.+}} : !u64i) : !u64i
154
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u64i), !s32i
175
+
176
+ // CIR: cir.func @_Z23test_builtin_popcountlly
177
+ // CIR: %{{.+}} = cir.bit.popcount(%{{.+}} : !u64i) : !s32i
178
+ // CIR: }
155
179
156
180
int test_builtin_popcountg (unsigned x) {
157
181
return __builtin_popcountg (x);
158
182
}
159
- // CIR-LABEL: test_builtin_popcountg
160
- // CIR: [[tmp:%.+]] = cir.bit.popcount(%{{.+}} : !u32i) : !u32i
161
- // CIR: {{%.*}} = cir.cast(integral, [[tmp]] : !u32i), !s32i
183
+
184
+ // CIR: cir.func @_Z22test_builtin_popcountgj
185
+ // CIR: %{{.+}} = cir.bit.popcount(%{{.+}} : !u32i) : !s32i
186
+ // CIR: }
0 commit comments