Debian Codegraph @

clang/test/CIR/CodeGen/object-size-flex-array.c

raw
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -emit-cir %s -o %t.cir
2 // RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR --check-prefix=CIR-NO-STRICT
3 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -emit-llvm -disable-llvm-passes %s -o %t-cir.ll
4 // RUN: FileCheck --input-file=%t-cir.ll %s --check-prefix=LLVM --check-prefix=LLVM-NO-STRICT
5 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -emit-llvm -disable-llvm-passes %s -o %t.ll
6 // RUN: FileCheck --input-file=%t.ll %s --check-prefix=OGCG --check-prefix=OGCG-NO-STRICT
7
8 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -fstrict-flex-arrays=0 -emit-cir %s -o %t-strict-0.cir
9 // RUN: FileCheck --input-file=%t-strict-0.cir %s --check-prefix=CIR --check-prefix=CIR-STRICT-0
10 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -fstrict-flex-arrays=0 -emit-llvm -disable-llvm-passes %s -o %t-cir-strict-0.ll
11 // RUN: FileCheck --input-file=%t-cir-strict-0.ll %s --check-prefix=LLVM --check-prefix=LLVM-STRICT-0
12 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fstrict-flex-arrays=0 -emit-llvm -disable-llvm-passes %s -o %t-strict-0.ll
13 // RUN: FileCheck --input-file=%t-strict-0.ll %s --check-prefix=OGCG --check-prefix=OGCG-STRICT-0
14
15 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -fstrict-flex-arrays=1 -emit-cir %s -o %t-strict-1.cir
16 // RUN: FileCheck --input-file=%t-strict-1.cir %s --check-prefix=CIR --check-prefix=CIR-STRICT-1
17 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -fstrict-flex-arrays=1 -emit-llvm -disable-llvm-passes %s -o %t-cir-strict-1.ll
18 // RUN: FileCheck --input-file=%t-cir-strict-1.ll %s --check-prefix=LLVM --check-prefix=LLVM-STRICT-1
19 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fstrict-flex-arrays=1 -emit-llvm -disable-llvm-passes %s -o %t-strict-1.ll
20 // RUN: FileCheck --input-file=%t-strict-1.ll %s --check-prefix=OGCG --check-prefix=OGCG-STRICT-1
21
22 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -fstrict-flex-arrays=2 -emit-cir %s -o %t-strict-2.cir
23 // RUN: FileCheck --input-file=%t-strict-2.cir %s --check-prefix=CIR --check-prefix=CIR-STRICT-2
24 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -fstrict-flex-arrays=2 -emit-llvm -disable-llvm-passes %s -o %t-cir-strict-2.ll
25 // RUN: FileCheck --input-file=%t-cir-strict-2.ll %s --check-prefix=LLVM --check-prefix=LLVM-STRICT-2
26 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fstrict-flex-arrays=2 -emit-llvm -disable-llvm-passes %s -o %t-strict-2.ll
27 // RUN: FileCheck --input-file=%t-strict-2.ll %s --check-prefix=OGCG --check-prefix=OGCG-STRICT-2
28
29 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -fstrict-flex-arrays=3 -emit-cir %s -o %t-strict-3.cir
30 // RUN: FileCheck --input-file=%t-strict-3.cir %s --check-prefix=CIR --check-prefix=CIR-STRICT-3
31 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fclangir -fstrict-flex-arrays=3 -emit-llvm -disable-llvm-passes %s -o %t-cir-strict-3.ll
32 // RUN: FileCheck --input-file=%t-cir-strict-3.ll %s --check-prefix=LLVM --check-prefix=LLVM-STRICT-3
33 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fstrict-flex-arrays=3 -emit-llvm -disable-llvm-passes %s -o %t-strict-3.ll
34 // RUN: FileCheck --input-file=%t-strict-3.ll %s --check-prefix=OGCG --check-prefix=OGCG-STRICT-3
35
36 #define OBJECT_SIZE_BUILTIN __builtin_object_size
37
38 typedef struct {
39 float f;
40 double c[];
41 } foo_t;
42
43 typedef struct {
44 float f;
45 double c[0];
46 } foo0_t;
47
48 typedef struct {
49 float f;
50 double c[1];
51 } foo1_t;
52
53 typedef struct {
54 float f;
55 double c[2];
56 } foo2_t;
57
58 // CIR-LABEL: @bar
59 // LLVM-LABEL: @bar(
60 // OGCG-LABEL: @bar(
61 unsigned bar(foo_t *f) {
62 // CIR-NO-STRICT: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
63 // CIR-STRICT-0: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
64 // CIR-STRICT-1: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
65 // CIR-STRICT-2: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
66 // CIR-STRICT-3: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
67 // LLVM-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
68 // LLVM-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
69 // LLVM-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
70 // LLVM-STRICT-2: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
71 // LLVM-STRICT-3: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
72 // OGCG-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
73 // OGCG-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
74 // OGCG-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
75 // OGCG-STRICT-2: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
76 // OGCG-STRICT-3: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
77 return OBJECT_SIZE_BUILTIN(f->c, 1);
78 }
79
80 // CIR-LABEL: @bar0
81 // LLVM-LABEL: @bar0(
82 // OGCG-LABEL: @bar0(
83 unsigned bar0(foo0_t *f) {
84 // CIR-NO-STRICT: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
85 // CIR-STRICT-0: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
86 // CIR-STRICT-1: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
87 // CIR-STRICT-2: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
88 // CIR-STRICT-3: cir.const #cir.int<0>
89 // LLVM-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
90 // LLVM-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
91 // LLVM-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
92 // LLVM-STRICT-2: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
93 // LLVM-STRICT-3: store i32 0
94 // OGCG-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
95 // OGCG-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
96 // OGCG-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
97 // OGCG-STRICT-2: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
98 // OGCG-STRICT-3: ret i32 0
99 return OBJECT_SIZE_BUILTIN(f->c, 1);
100 }
101
102 // CIR-LABEL: @bar1
103 // LLVM-LABEL: @bar1(
104 // OGCG-LABEL: @bar1(
105 unsigned bar1(foo1_t *f) {
106 // CIR-NO-STRICT: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
107 // CIR-STRICT-0: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
108 // CIR-STRICT-1: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
109 // CIR-STRICT-2: cir.const #cir.int<8>
110 // CIR-STRICT-3: cir.const #cir.int<8>
111 // LLVM-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
112 // LLVM-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
113 // LLVM-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
114 // LLVM-STRICT-2: store i32 8
115 // LLVM-STRICT-3: store i32 8
116 // OGCG-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
117 // OGCG-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
118 // OGCG-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
119 // OGCG-STRICT-2: ret i32 8
120 // OGCG-STRICT-3: ret i32 8
121 return OBJECT_SIZE_BUILTIN(f->c, 1);
122 }
123
124 // CIR-LABEL: @bar2
125 // LLVM-LABEL: @bar2(
126 // OGCG-LABEL: @bar2(
127 unsigned bar2(foo2_t *f) {
128 // CIR-NO-STRICT: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
129 // CIR-STRICT-0: cir.objsize max nullunknown {{.*}} : !cir.ptr<!void> -> !u64i
130 // CIR-STRICT-1: cir.const #cir.int<16>
131 // CIR-STRICT-2: cir.const #cir.int<16>
132 // CIR-STRICT-3: cir.const #cir.int<16>
133 // LLVM-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
134 // LLVM-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
135 // LLVM-STRICT-1: store i32 16
136 // LLVM-STRICT-2: store i32 16
137 // LLVM-STRICT-3: store i32 16
138 // OGCG-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
139 // OGCG-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 false)
140 // OGCG-STRICT-1: ret i32 16
141 // OGCG-STRICT-2: ret i32 16
142 // OGCG-STRICT-3: ret i32 16
143 return OBJECT_SIZE_BUILTIN(f->c, 1);
144 }
145
146 #define DYNAMIC_OBJECT_SIZE_BUILTIN __builtin_dynamic_object_size
147
148 // CIR-LABEL: @dyn_bar
149 // LLVM-LABEL: @dyn_bar(
150 // OGCG-LABEL: @dyn_bar(
151 unsigned dyn_bar(foo_t *f) {
152 // CIR-NO-STRICT: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
153 // CIR-STRICT-0: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
154 // CIR-STRICT-1: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
155 // CIR-STRICT-2: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
156 // CIR-STRICT-3: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
157 // LLVM-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
158 // LLVM-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
159 // LLVM-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
160 // LLVM-STRICT-2: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
161 // LLVM-STRICT-3: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
162 // OGCG-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
163 // OGCG-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
164 // OGCG-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
165 // OGCG-STRICT-2: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
166 // OGCG-STRICT-3: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
167 return DYNAMIC_OBJECT_SIZE_BUILTIN(f->c, 1);
168 }
169
170 // CIR-LABEL: @dyn_bar0
171 // LLVM-LABEL: @dyn_bar0(
172 // OGCG-LABEL: @dyn_bar0(
173 unsigned dyn_bar0(foo0_t *f) {
174 // CIR-NO-STRICT: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
175 // CIR-STRICT-0: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
176 // CIR-STRICT-1: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
177 // CIR-STRICT-2: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
178 // CIR-STRICT-3: cir.const #cir.int<0>
179 // LLVM-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
180 // LLVM-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
181 // LLVM-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
182 // LLVM-STRICT-2: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
183 // LLVM-STRICT-3: store i32 0
184 // OGCG-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
185 // OGCG-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
186 // OGCG-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
187 // OGCG-STRICT-2: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
188 // OGCG-STRICT-3: ret i32 0
189 return DYNAMIC_OBJECT_SIZE_BUILTIN(f->c, 1);
190 }
191
192 // CIR-LABEL: @dyn_bar1
193 // LLVM-LABEL: @dyn_bar1(
194 // OGCG-LABEL: @dyn_bar1(
195 unsigned dyn_bar1(foo1_t *f) {
196 // CIR-NO-STRICT: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
197 // CIR-STRICT-0: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
198 // CIR-STRICT-1: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
199 // CIR-STRICT-2: cir.const #cir.int<8>
200 // CIR-STRICT-3: cir.const #cir.int<8>
201 // LLVM-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
202 // LLVM-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
203 // LLVM-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
204 // LLVM-STRICT-2: store i32 8
205 // LLVM-STRICT-3: store i32 8
206 // OGCG-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
207 // OGCG-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
208 // OGCG-STRICT-1: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
209 // OGCG-STRICT-2: ret i32 8
210 // OGCG-STRICT-3: ret i32 8
211 return DYNAMIC_OBJECT_SIZE_BUILTIN(f->c, 1);
212 }
213
214 // CIR-LABEL: @dyn_bar2
215 // LLVM-LABEL: @dyn_bar2(
216 // OGCG-LABEL: @dyn_bar2(
217 unsigned dyn_bar2(foo2_t *f) {
218 // CIR-NO-STRICT: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
219 // CIR-STRICT-0: cir.objsize max nullunknown dynamic {{.*}} : !cir.ptr<!void> -> !u64i
220 // CIR-STRICT-1: cir.const #cir.int<16>
221 // CIR-STRICT-2: cir.const #cir.int<16>
222 // CIR-STRICT-3: cir.const #cir.int<16>
223 // LLVM-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
224 // LLVM-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
225 // LLVM-STRICT-1: store i32 16
226 // LLVM-STRICT-2: store i32 16
227 // LLVM-STRICT-3: store i32 16
228 // OGCG-NO-STRICT: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
229 // OGCG-STRICT-0: llvm.objectsize.i64.p0(ptr {{.*}}, i1 false, i1 true, i1 true)
230 // OGCG-STRICT-1: ret i32 16
231 // OGCG-STRICT-2: ret i32 16
232 // OGCG-STRICT-3: ret i32 16
233 return DYNAMIC_OBJECT_SIZE_BUILTIN(f->c, 1);
234 }
235
236 // Also checks for non-trailing flex-array like members
237
238 typedef struct {
239 double c[0];
240 float f;
241 } foofoo0_t;
242
243 typedef struct {
244 double c[1];
245 float f;
246 } foofoo1_t;
247
248 typedef struct {
249 double c[2];
250 float f;
251 } foofoo2_t;
252
253 // CIR-LABEL: @babar0
254 // LLVM-LABEL: @babar0(
255 // OGCG-LABEL: @babar0(
256 unsigned babar0(foofoo0_t *f) {
257 // CIR-NO-STRICT: cir.const #cir.int<0>
258 // CIR-STRICT-0: cir.const #cir.int<0>
259 // CIR-STRICT-1: cir.const #cir.int<0>
260 // CIR-STRICT-2: cir.const #cir.int<0>
261 // CIR-STRICT-3: cir.const #cir.int<0>
262 // LLVM-NO-STRICT: store i32 0
263 // LLVM-STRICT-0: store i32 0
264 // LLVM-STRICT-1: store i32 0
265 // LLVM-STRICT-2: store i32 0
266 // LLVM-STRICT-3: store i32 0
267 // OGCG-NO-STRICT: ret i32 0
268 // OGCG-STRICT-0: ret i32 0
269 // OGCG-STRICT-1: ret i32 0
270 // OGCG-STRICT-2: ret i32 0
271 // OGCG-STRICT-3: ret i32 0
272 return OBJECT_SIZE_BUILTIN(f->c, 1);
273 }
274
275 // CIR-LABEL: @babar1
276 // LLVM-LABEL: @babar1(
277 // OGCG-LABEL: @babar1(
278 unsigned babar1(foofoo1_t *f) {
279 // CIR-NO-STRICT: cir.const #cir.int<8>
280 // CIR-STRICT-0: cir.const #cir.int<8>
281 // CIR-STRICT-1: cir.const #cir.int<8>
282 // CIR-STRICT-2: cir.const #cir.int<8>
283 // CIR-STRICT-3: cir.const #cir.int<8>
284 // LLVM-NO-STRICT: store i32 8
285 // LLVM-STRICT-0: store i32 8
286 // LLVM-STRICT-1: store i32 8
287 // LLVM-STRICT-2: store i32 8
288 // LLVM-STRICT-3: store i32 8
289 // OGCG-NO-STRICT: ret i32 8
290 // OGCG-STRICT-0: ret i32 8
291 // OGCG-STRICT-1: ret i32 8
292 // OGCG-STRICT-2: ret i32 8
293 // OGCG-STRICT-3: ret i32 8
294 return OBJECT_SIZE_BUILTIN(f->c, 1);
295 }
296
297 // CIR-LABEL: @babar2
298 // LLVM-LABEL: @babar2(
299 // OGCG-LABEL: @babar2(
300 unsigned babar2(foofoo2_t *f) {
301 // CIR-NO-STRICT: cir.const #cir.int<16>
302 // CIR-STRICT-0: cir.const #cir.int<16>
303 // CIR-STRICT-1: cir.const #cir.int<16>
304 // CIR-STRICT-2: cir.const #cir.int<16>
305 // CIR-STRICT-3: cir.const #cir.int<16>
306 // LLVM-NO-STRICT: store i32 16
307 // LLVM-STRICT-0: store i32 16
308 // LLVM-STRICT-1: store i32 16
309 // LLVM-STRICT-2: store i32 16
310 // LLVM-STRICT-3: store i32 16
311 // OGCG-NO-STRICT: ret i32 16
312 // OGCG-STRICT-0: ret i32 16
313 // OGCG-STRICT-1: ret i32 16
314 // OGCG-STRICT-2: ret i32 16
315 // OGCG-STRICT-3: ret i32 16
316 return OBJECT_SIZE_BUILTIN(f->c, 1);
317 }