| 1 |
/* This file is used by test-combination.c and test-threads.c to |
| 2 |
bring all of the non-failing test cases into one source file, |
| 3 |
renaming each "create_code" and "verify_code" hook so that they |
| 4 |
each have unique name. */ |
| 5 |
|
| 6 |
/* Include various other test cases, defining COMBINED_TEST so that |
| 7 |
harness.h doesn't duplicate copes of e.g. main, and renaming the |
| 8 |
hooks provided by each test case. */ |
| 9 |
#define COMBINED_TEST |
| 10 |
|
| 11 |
/* test-accessing-bitfield.c */ |
| 12 |
#define create_code create_code_accessing_bitfield |
| 13 |
#define verify_code verify_code_accessing_bitfield |
| 14 |
#include "test-accessing-bitfield.c" |
| 15 |
#undef create_code |
| 16 |
#undef verify_code |
| 17 |
|
| 18 |
/* test-accessing-struct.c */ |
| 19 |
#define create_code create_code_accessing_struct |
| 20 |
#define verify_code verify_code_accessing_struct |
| 21 |
#include "test-accessing-struct.c" |
| 22 |
#undef create_code |
| 23 |
#undef verify_code |
| 24 |
|
| 25 |
/* test-accessing-union.c */ |
| 26 |
#define create_code create_code_accessing_union |
| 27 |
#define verify_code verify_code_accessing_union |
| 28 |
#include "test-accessing-union.c" |
| 29 |
#undef create_code |
| 30 |
#undef verify_code |
| 31 |
|
| 32 |
/* test-add-driver-options.c: We don't use this one, since the extra options |
| 33 |
affect the whole context. */ |
| 34 |
|
| 35 |
/* test-alias-attribute.c: This can't be in the testcases array as it |
| 36 |
doesn't have a verify_code implementation. */ |
| 37 |
|
| 38 |
/* test-alignment.c */ |
| 39 |
#define create_code create_code_alignment |
| 40 |
#define verify_code verify_code_alignment |
| 41 |
#include "test-alignment.c" |
| 42 |
#undef create_code |
| 43 |
#undef verify_code |
| 44 |
|
| 45 |
/* test-alignof.c */ |
| 46 |
#define create_code create_code_alignof |
| 47 |
#define verify_code verify_code_alignof |
| 48 |
#include "test-alignof.c" |
| 49 |
#undef create_code |
| 50 |
#undef verify_code |
| 51 |
|
| 52 |
/* test-always_inline-attribute.c: This can't be in the testcases array as it needs |
| 53 |
the `-O0` flag. */ |
| 54 |
|
| 55 |
/* test-arith-overflow.c */ |
| 56 |
#define create_code create_code_arith_overflow |
| 57 |
#define verify_code verify_code_arith_overflow |
| 58 |
#include "test-arith-overflow.c" |
| 59 |
#undef create_code |
| 60 |
#undef verify_code |
| 61 |
|
| 62 |
/* test-array-as-pointer.c */ |
| 63 |
#define create_code create_code_array_as_pointer |
| 64 |
#define verify_code verify_code_array_as_pointer |
| 65 |
#include "test-array-as-pointer.c" |
| 66 |
#undef create_code |
| 67 |
#undef verify_code |
| 68 |
|
| 69 |
/* test-arrays.c */ |
| 70 |
#define create_code create_code_arrays |
| 71 |
#define verify_code verify_code_arrays |
| 72 |
#include "test-arrays.c" |
| 73 |
#undef create_code |
| 74 |
#undef verify_code |
| 75 |
|
| 76 |
/* test-autovectorize.c */ |
| 77 |
#define create_code create_code_autovectorize |
| 78 |
#define verify_code verify_code_autovectorize |
| 79 |
#include "test-autovectorize.c" |
| 80 |
#undef create_code |
| 81 |
#undef verify_code |
| 82 |
|
| 83 |
/* test-bfloat16.c: This can't be in the testcases array as it |
| 84 |
is target-specific. */ |
| 85 |
|
| 86 |
/* test-builtin-memcpy.c */ |
| 87 |
#define create_code create_code_builtin_memcpy |
| 88 |
#define verify_code verify_code_builtin_memcpy |
| 89 |
#include "test-builtin-memcpy.c" |
| 90 |
#undef create_code |
| 91 |
#undef verify_code |
| 92 |
|
| 93 |
/* test-builtin-unreachable.c: We don't add this one, since it touches |
| 94 |
the optimization level of the context as a whole. */ |
| 95 |
|
| 96 |
/* test-bitcast.c */ |
| 97 |
#define create_code create_code_bitcast |
| 98 |
#define verify_code verify_code_bitcast |
| 99 |
#include "test-bitcast.c" |
| 100 |
#undef create_code |
| 101 |
#undef verify_code |
| 102 |
|
| 103 |
/* test-calling-external-function.c */ |
| 104 |
#define create_code create_code_calling_external_function |
| 105 |
#define verify_code verify_code_calling_external_function |
| 106 |
#include "test-calling-external-function.c" |
| 107 |
#undef create_code |
| 108 |
#undef verify_code |
| 109 |
|
| 110 |
/* test-calling-function-ptr.c */ |
| 111 |
#define create_code create_code_calling_function_ptr |
| 112 |
#define verify_code verify_code_calling_function_ptr |
| 113 |
#include "test-calling-function-ptr.c" |
| 114 |
#undef create_code |
| 115 |
#undef verify_code |
| 116 |
|
| 117 |
/* test-returning-function-ptr.c */ |
| 118 |
#define create_code create_code_calling_internal_function |
| 119 |
#define verify_code verify_code_calling_internal_function |
| 120 |
#include "test-returning-function-ptr.c" |
| 121 |
#undef create_code |
| 122 |
#undef verify_code |
| 123 |
|
| 124 |
/* test-cast.c */ |
| 125 |
#define create_code create_code_cast |
| 126 |
#define verify_code verify_code_cast |
| 127 |
#include "test-cast.c" |
| 128 |
#undef create_code |
| 129 |
#undef verify_code |
| 130 |
|
| 131 |
/* test-compound-assignment.c */ |
| 132 |
#define create_code create_code_compound_assignment |
| 133 |
#define verify_code verify_code_compound_assignment |
| 134 |
#include "test-compound-assignment.c" |
| 135 |
#undef create_code |
| 136 |
#undef verify_code |
| 137 |
|
| 138 |
/* test-cold-attribute.c: This can't be in the testcases array as it needs a |
| 139 |
specific optimization flag. */ |
| 140 |
|
| 141 |
/* test-constants.c */ |
| 142 |
#define create_code create_code_constants |
| 143 |
#define verify_code verify_code_constants |
| 144 |
#include "test-constants.c" |
| 145 |
#undef create_code |
| 146 |
#undef verify_code |
| 147 |
|
| 148 |
/* test-const-attribute.c: This can't be in the testcases array as it needs |
| 149 |
the `-O3` flag. */ |
| 150 |
|
| 151 |
/* test-convert-vector.c */ |
| 152 |
#define create_code create_code_convert_vector |
| 153 |
#define verify_code verify_code_convert_vector |
| 154 |
#include "test-convert-vector.c" |
| 155 |
#undef create_code |
| 156 |
#undef verify_code |
| 157 |
|
| 158 |
/* test-debug-strings.c */ |
| 159 |
#define create_code create_code_debug_strings |
| 160 |
#define verify_code verify_code_debug_strings |
| 161 |
#include "test-debug-strings.c" |
| 162 |
#undef create_code |
| 163 |
#undef verify_code |
| 164 |
|
| 165 |
/* test-dot-product.c */ |
| 166 |
#define create_code create_code_dot_product |
| 167 |
#define verify_code verify_code_dot_product |
| 168 |
#include "test-dot-product.c" |
| 169 |
#undef create_code |
| 170 |
#undef verify_code |
| 171 |
|
| 172 |
/* test-empty.c */ |
| 173 |
#define create_code create_code_empty |
| 174 |
#define verify_code verify_code_empty |
| 175 |
#include "test-empty.c" |
| 176 |
#undef create_code |
| 177 |
#undef verify_code |
| 178 |
|
| 179 |
/* test-error-*.c: We don't use these test cases, since they deliberately |
| 180 |
introduce errors, which we don't want here. */ |
| 181 |
|
| 182 |
/* test-expressions.c */ |
| 183 |
#define create_code create_code_expressions |
| 184 |
#define verify_code verify_code_expressions |
| 185 |
#include "test-expressions.c" |
| 186 |
#undef create_code |
| 187 |
#undef verify_code |
| 188 |
|
| 189 |
/* test-extra-options.c: We don't use this one, since the extra options |
| 190 |
affect the whole context. */ |
| 191 |
|
| 192 |
/* test-factorial.c */ |
| 193 |
#define create_code create_code_factorial |
| 194 |
#define verify_code verify_code_factorial |
| 195 |
#include "test-factorial.c" |
| 196 |
#undef create_code |
| 197 |
#undef verify_code |
| 198 |
|
| 199 |
/* test-factorial-must-tail-call.c */ |
| 200 |
#define create_code create_code_factorial_must_tail_call |
| 201 |
#define verify_code verify_code_factorial_must_tail_call |
| 202 |
#include "test-factorial-must-tail-call.c" |
| 203 |
#undef create_code |
| 204 |
#undef verify_code |
| 205 |
|
| 206 |
/* test-fibonacci.c */ |
| 207 |
#define create_code create_code_fibonacci |
| 208 |
#define verify_code verify_code_fibonacci |
| 209 |
#include "test-fibonacci.c" |
| 210 |
#undef create_code |
| 211 |
#undef verify_code |
| 212 |
|
| 213 |
/* test-functions.c */ |
| 214 |
#define create_code create_code_functions |
| 215 |
#define verify_code verify_code_functions |
| 216 |
#include "test-functions.c" |
| 217 |
#undef create_code |
| 218 |
#undef verify_code |
| 219 |
|
| 220 |
/* test-global-init-rvalue.c */ |
| 221 |
#define create_code create_code_global_init_rvalue |
| 222 |
#define verify_code verify_code_global_init_rvalue |
| 223 |
#include "test-global-init-rvalue.c" |
| 224 |
#undef create_code |
| 225 |
#undef verify_code |
| 226 |
|
| 227 |
/* test-global-set-initializer.c */ |
| 228 |
#define create_code create_code_global_set_initializer |
| 229 |
#define verify_code verify_code_global_set_initializer |
| 230 |
#include "test-global-set-initializer.c" |
| 231 |
#undef create_code |
| 232 |
#undef verify_code |
| 233 |
|
| 234 |
/* test-builtin-types.c */ |
| 235 |
#define create_code create_code_builtin_types |
| 236 |
#define verify_code verify_code_builtin_types |
| 237 |
#include "test-builtin-types.c" |
| 238 |
#undef create_code |
| 239 |
#undef verify_code |
| 240 |
|
| 241 |
/* test-tls.c */ |
| 242 |
#define create_code create_code_tls |
| 243 |
#define verify_code verify_code_tls |
| 244 |
#include "test-tls.c" |
| 245 |
#undef create_code |
| 246 |
#undef verify_code |
| 247 |
|
| 248 |
/* test-hello-world.c */ |
| 249 |
#define create_code create_code_hello_world |
| 250 |
#define verify_code verify_code_hello_world |
| 251 |
#include "test-hello-world.c" |
| 252 |
#undef create_code |
| 253 |
#undef verify_code |
| 254 |
|
| 255 |
/* test-link-section-assembler.c: This can't be in the testcases array as it |
| 256 |
doesn't have a verify_code implementation. */ |
| 257 |
|
| 258 |
/* test-linked-list.c */ |
| 259 |
#define create_code create_code_linked_list |
| 260 |
#define verify_code verify_code_linked_list |
| 261 |
#include "test-linked-list.c" |
| 262 |
#undef create_code |
| 263 |
#undef verify_code |
| 264 |
|
| 265 |
/* test-local-init-rvalue.c */ |
| 266 |
#define create_code create_code_local_init_rvalue |
| 267 |
#define verify_code verify_code_local_init_rvalue |
| 268 |
#include "test-local-init-rvalue.c" |
| 269 |
#undef create_code |
| 270 |
#undef verify_code |
| 271 |
|
| 272 |
/* test-long-names.c */ |
| 273 |
#define create_code create_code_long_names |
| 274 |
#define verify_code verify_code_long_names |
| 275 |
#include "test-long-names.c" |
| 276 |
#undef create_code |
| 277 |
#undef verify_code |
| 278 |
|
| 279 |
/* test-long-string-literal.c */ |
| 280 |
#define create_code create_code_long_string_literal |
| 281 |
#define verify_code verify_code_long_string_literal |
| 282 |
#include "test-long-string-literal.c" |
| 283 |
#undef create_code |
| 284 |
#undef verify_code |
| 285 |
|
| 286 |
/* test-output-ident.c: This can't be in the testcases array as it |
| 287 |
is target-specific. */ |
| 288 |
|
| 289 |
/* test-quadratic.c */ |
| 290 |
#define create_code create_code_quadratic |
| 291 |
#define verify_code verify_code_quadratic |
| 292 |
#include "test-quadratic.c" |
| 293 |
#undef create_code |
| 294 |
#undef verify_code |
| 295 |
|
| 296 |
/* test-nested-loops.c */ |
| 297 |
#define create_code create_code_nested_loop |
| 298 |
#define verify_code verify_code_nested_loop |
| 299 |
#include "test-nested-loops.c" |
| 300 |
#undef create_code |
| 301 |
#undef verify_code |
| 302 |
|
| 303 |
/* test-noinline-attribute.c: This can't be in the testcases array as it needs |
| 304 |
the `-O2` flag. */ |
| 305 |
|
| 306 |
/* test-nonnull-attribute.c: This can't be in the testcases array as it needs |
| 307 |
the `-O2` flag. */ |
| 308 |
|
| 309 |
/* test-popcount.c */ |
| 310 |
#define create_code create_code_popcount |
| 311 |
#define verify_code verify_code_popcount |
| 312 |
#include "test-popcount.c" |
| 313 |
#undef create_code |
| 314 |
#undef verify_code |
| 315 |
|
| 316 |
/* test-pr103562.c: We don't add this one, since it touches |
| 317 |
the optimization level of the context as a whole. */ |
| 318 |
|
| 319 |
/* test-pr66700-observing-write-through-ptr.c */ |
| 320 |
#define create_code create_code_pr66700_observing_write_through_ptr |
| 321 |
#define verify_code verify_code_pr66700_observing_write_through_ptr |
| 322 |
#include "test-pr66700-observing-write-through-ptr.c" |
| 323 |
#undef create_code |
| 324 |
#undef verify_code |
| 325 |
|
| 326 |
/* test-pr66779.c */ |
| 327 |
#define create_code create_code_pr66779 |
| 328 |
#define verify_code verify_code_pr66779 |
| 329 |
#include "test-pr66779.c" |
| 330 |
#undef create_code |
| 331 |
#undef verify_code |
| 332 |
|
| 333 |
/* test-pr95306-builtin-types.c. */ |
| 334 |
#define create_code create_code_pr95306_builtin_types |
| 335 |
#define verify_code verify_code_pr95306_builtin_types |
| 336 |
#include "test-pr95306-builtin-types.c" |
| 337 |
#undef create_code |
| 338 |
#undef verify_code |
| 339 |
|
| 340 |
/* test-pr95314-rvalue-reuse.c. */ |
| 341 |
#define create_code create_code_pr95314_rvalue_reuse |
| 342 |
#define verify_code verify_code_pr95314_rvalue_reuse |
| 343 |
#include "test-pr95314-rvalue-reuse.c" |
| 344 |
#undef create_code |
| 345 |
#undef verify_code |
| 346 |
|
| 347 |
/* test-pr117886-write-reproducer.c. */ |
| 348 |
#define create_code create_code_pr117886_write_reproducer |
| 349 |
#define verify_code verify_code_pr117886_write_reproducer |
| 350 |
#include "test-pr117886-write-reproducer.c" |
| 351 |
#undef create_code |
| 352 |
#undef verify_code |
| 353 |
|
| 354 |
/* test-pure-attribute.c: This can't be in the testcases array as it needs |
| 355 |
the `-O3` flag. */ |
| 356 |
|
| 357 |
/* test-reading-struct.c */ |
| 358 |
#define create_code create_code_reading_struct |
| 359 |
#define verify_code verify_code_reading_struct |
| 360 |
#include "test-reading-struct.c" |
| 361 |
#undef create_code |
| 362 |
#undef verify_code |
| 363 |
|
| 364 |
/* test-reflection.c */ |
| 365 |
#define create_code create_code_reflection |
| 366 |
#define verify_code verify_code_reflection |
| 367 |
#include "test-reflection.c" |
| 368 |
#undef create_code |
| 369 |
#undef verify_code |
| 370 |
|
| 371 |
/* test-readonly.c: This can't be in the testcases array as it |
| 372 |
is target-specific. */ |
| 373 |
|
| 374 |
/* test-restrict.c: This can't be in the testcases array as it needs |
| 375 |
the `-O3` flag. */ |
| 376 |
|
| 377 |
/* test-restrict-attribute.c: This can't be in the testcases array as it needs |
| 378 |
the `-O3` flag. */ |
| 379 |
|
| 380 |
/* test-register-variable.c: This can't be in the testcases array as it |
| 381 |
is target-specific. */ |
| 382 |
|
| 383 |
/* test-setting-alignment.c: This can't be in the testcases array as it |
| 384 |
is target-specific. */ |
| 385 |
|
| 386 |
/* test-signed-char.c */ |
| 387 |
#define create_code create_code_signed_char |
| 388 |
#define verify_code verify_code_signed_char |
| 389 |
#include "test-signed-char.c" |
| 390 |
#undef create_code |
| 391 |
#undef verify_code |
| 392 |
|
| 393 |
/* test-sizeof.c */ |
| 394 |
#define create_code create_code_sizeof |
| 395 |
#define verify_code verify_code_sizeof |
| 396 |
#include "test-sizeof.c" |
| 397 |
#undef create_code |
| 398 |
#undef verify_code |
| 399 |
|
| 400 |
/* test-target-builtins.c: This can't be in the testcases array as it |
| 401 |
is target-specific. */ |
| 402 |
|
| 403 |
/* test-temp.c: This can't be in the testcases array as it |
| 404 |
is target-specific. */ |
| 405 |
|
| 406 |
/* test-string-literal.c */ |
| 407 |
#define create_code create_code_string_literal |
| 408 |
#define verify_code verify_code_string_literal |
| 409 |
#include "test-string-literal.c" |
| 410 |
#undef create_code |
| 411 |
#undef verify_code |
| 412 |
|
| 413 |
/* test-sum-of-squares.c */ |
| 414 |
#define create_code create_code_sum_of_squares |
| 415 |
#define verify_code verify_code_sum_of_squares |
| 416 |
#include "test-sum-of-squares.c" |
| 417 |
#undef create_code |
| 418 |
#undef verify_code |
| 419 |
|
| 420 |
/* test-switch.c */ |
| 421 |
#define create_code create_code_switch |
| 422 |
#define verify_code verify_code_switch |
| 423 |
#include "test-switch.c" |
| 424 |
#undef create_code |
| 425 |
#undef verify_code |
| 426 |
|
| 427 |
/* test-types.c */ |
| 428 |
#define create_code create_code_types |
| 429 |
#define verify_code verify_code_types |
| 430 |
#include "test-types.c" |
| 431 |
#undef create_code |
| 432 |
#undef verify_code |
| 433 |
|
| 434 |
/* test-used-attribute.c: This can't be in the testcases array as it needs |
| 435 |
the `-O2` flag. */ |
| 436 |
|
| 437 |
/* test-using-global.c */ |
| 438 |
#define create_code create_code_using_global |
| 439 |
#define verify_code verify_code_using_global |
| 440 |
#include "test-using-global.c" |
| 441 |
#undef create_code |
| 442 |
#undef verify_code |
| 443 |
|
| 444 |
/* test-validly-unreachable-block.c: We don't use this one, since the use |
| 445 |
of gcc_jit_context_set_bool_allow_unreachable_blocks affects the whole |
| 446 |
context. */ |
| 447 |
|
| 448 |
/* test-variable-attribute.c: This can't be in the testcases array as it |
| 449 |
doesn't have a verify_code implementation. */ |
| 450 |
|
| 451 |
/* test-vector-types.cc: We don't use this, since it's C++. */ |
| 452 |
|
| 453 |
/* test-version.c */ |
| 454 |
#define create_code create_code_version |
| 455 |
#define verify_code verify_code_version |
| 456 |
#include "test-version.c" |
| 457 |
#undef create_code |
| 458 |
#undef verify_code |
| 459 |
|
| 460 |
/* test-volatile.c */ |
| 461 |
#define create_code create_code_volatile |
| 462 |
#define verify_code verify_code_volatile |
| 463 |
#include "test-volatile.c" |
| 464 |
#undef create_code |
| 465 |
#undef verify_code |
| 466 |
|
| 467 |
/* test-ggc-bugfix.c: We don't use this once, since the use of |
| 468 |
gcc_jit_context_add_command_line_option and |
| 469 |
gcc_jit_context_add_driver_option affects the whole context. */ |
| 470 |
|
| 471 |
/* test-weak-attribute.c: This can't be in the testcases array as it |
| 472 |
doesn't have a verify_code implementation. */ |
| 473 |
|
| 474 |
/* test-vector-perm.c */ |
| 475 |
#define create_code create_code_vector_perm |
| 476 |
#define verify_code verify_code_vector_perm |
| 477 |
#include "test-vector-perm.c" |
| 478 |
#undef create_code |
| 479 |
#undef verify_code |
| 480 |
|
| 481 |
/* Now expose the individual testcases as instances of this struct. */ |
| 482 |
|
| 483 |
struct testcase |
| 484 |
{ |
| 485 |
const char *m_name; |
| 486 |
void (*m_hook_to_create_code) (gcc_jit_context *ctxt, |
| 487 |
void * user_data); |
| 488 |
void (*m_hook_to_verify_code) (gcc_jit_context *ctxt, |
| 489 |
gcc_jit_result *result); |
| 490 |
}; |
| 491 |
|
| 492 |
const struct testcase testcases[] = { |
| 493 |
{"accessing_bitfield", |
| 494 |
create_code_accessing_bitfield, |
| 495 |
verify_code_accessing_bitfield}, |
| 496 |
{"accessing_struct", |
| 497 |
create_code_accessing_struct, |
| 498 |
verify_code_accessing_struct}, |
| 499 |
{"accessing_union", |
| 500 |
create_code_accessing_union, |
| 501 |
verify_code_accessing_union}, |
| 502 |
{"alignof", |
| 503 |
create_code_alignof, |
| 504 |
verify_code_alignof}, |
| 505 |
{"alignment", |
| 506 |
create_code_alignment, |
| 507 |
verify_code_alignment}, |
| 508 |
{"arith_overflow", |
| 509 |
create_code_arith_overflow, |
| 510 |
verify_code_arith_overflow}, |
| 511 |
{"array_as_pointer", |
| 512 |
create_code_array_as_pointer, |
| 513 |
verify_code_array_as_pointer}, |
| 514 |
{"arrays", |
| 515 |
create_code_arrays, |
| 516 |
verify_code_arrays}, |
| 517 |
{"autovectorize", |
| 518 |
create_code_autovectorize, |
| 519 |
verify_code_autovectorize}, |
| 520 |
{"builtin-memcpy", |
| 521 |
create_code_builtin_memcpy, |
| 522 |
verify_code_builtin_memcpy}, |
| 523 |
{"bitcast", |
| 524 |
create_code_bitcast, |
| 525 |
verify_code_bitcast}, |
| 526 |
{"calling_external_function", |
| 527 |
create_code_calling_external_function, |
| 528 |
verify_code_calling_external_function}, |
| 529 |
{"calling_function_ptr", |
| 530 |
create_code_calling_function_ptr, |
| 531 |
verify_code_calling_function_ptr}, |
| 532 |
{"calling_internal_function", |
| 533 |
create_code_calling_internal_function, |
| 534 |
verify_code_calling_internal_function}, |
| 535 |
{"cast", |
| 536 |
create_code_cast, |
| 537 |
verify_code_cast}, |
| 538 |
{"compound_assignment", |
| 539 |
create_code_compound_assignment, |
| 540 |
verify_code_compound_assignment}, |
| 541 |
{"constants", |
| 542 |
create_code_constants, |
| 543 |
verify_code_constants}, |
| 544 |
{"convert_vector", |
| 545 |
create_code_convert_vector, |
| 546 |
verify_code_convert_vector}, |
| 547 |
{"debug_strings", |
| 548 |
create_code_debug_strings, |
| 549 |
verify_code_debug_strings}, |
| 550 |
{"dot_product", |
| 551 |
create_code_dot_product, |
| 552 |
verify_code_dot_product}, |
| 553 |
{"expressions", |
| 554 |
create_code_expressions, |
| 555 |
verify_code_expressions}, |
| 556 |
{"empty", |
| 557 |
create_code_empty, |
| 558 |
verify_code_empty}, |
| 559 |
{"factorial", |
| 560 |
create_code_factorial, |
| 561 |
verify_code_factorial}, |
| 562 |
{"factorial_must_tail_call", |
| 563 |
create_code_factorial_must_tail_call, |
| 564 |
verify_code_factorial_must_tail_call}, |
| 565 |
{"fibonacci", |
| 566 |
create_code_fibonacci, |
| 567 |
verify_code_fibonacci}, |
| 568 |
{"functions", |
| 569 |
create_code_functions, |
| 570 |
verify_code_functions}, |
| 571 |
{"builtin-types", |
| 572 |
create_code_builtin_types, |
| 573 |
verify_code_builtin_types}, |
| 574 |
{"global_rvalue_init", |
| 575 |
create_code_global_init_rvalue, |
| 576 |
verify_code_global_init_rvalue}, |
| 577 |
{"hello_world", |
| 578 |
create_code_hello_world, |
| 579 |
verify_code_hello_world}, |
| 580 |
{"linked_list", |
| 581 |
create_code_linked_list, |
| 582 |
verify_code_linked_list}, |
| 583 |
{"local_rvalue_init", |
| 584 |
create_code_local_init_rvalue, |
| 585 |
verify_code_local_init_rvalue}, |
| 586 |
{"long_names", |
| 587 |
create_code_long_names, |
| 588 |
verify_code_long_names}, |
| 589 |
{"long_string_literal", |
| 590 |
create_code_long_string_literal, |
| 591 |
verify_code_long_string_literal}, |
| 592 |
{"quadratic", |
| 593 |
create_code_quadratic, |
| 594 |
verify_code_quadratic}, |
| 595 |
{"nested_loop", |
| 596 |
create_code_nested_loop, |
| 597 |
verify_code_nested_loop}, |
| 598 |
{"popcount", |
| 599 |
create_code_popcount, |
| 600 |
verify_code_popcount}, |
| 601 |
{"pr66700_observing_write_through_ptr", |
| 602 |
create_code_pr66700_observing_write_through_ptr, |
| 603 |
verify_code_pr66700_observing_write_through_ptr}, |
| 604 |
{"pr66779", |
| 605 |
create_code_pr66779, |
| 606 |
verify_code_pr66779}, |
| 607 |
{"pr95306_builtin_types", |
| 608 |
create_code_pr95306_builtin_types, |
| 609 |
verify_code_pr95306_builtin_types}, |
| 610 |
{"pr95314_rvalue_reuse", |
| 611 |
create_code_pr95314_rvalue_reuse, |
| 612 |
verify_code_pr95314_rvalue_reuse}, |
| 613 |
{"pr117886_write_reproducer", |
| 614 |
create_code_pr117886_write_reproducer, |
| 615 |
verify_code_pr117886_write_reproducer}, |
| 616 |
{"reading_struct ", |
| 617 |
create_code_reading_struct , |
| 618 |
verify_code_reading_struct }, |
| 619 |
{"reflection", |
| 620 |
create_code_reflection , |
| 621 |
verify_code_reflection }, |
| 622 |
{"signed-char", |
| 623 |
create_code_signed_char, |
| 624 |
verify_code_signed_char}, |
| 625 |
{"sizeof", |
| 626 |
create_code_sizeof, |
| 627 |
verify_code_sizeof}, |
| 628 |
{"string_literal", |
| 629 |
create_code_string_literal, |
| 630 |
verify_code_string_literal}, |
| 631 |
{"sum_of_squares", |
| 632 |
create_code_sum_of_squares, |
| 633 |
verify_code_sum_of_squares}, |
| 634 |
{"switch", |
| 635 |
create_code_switch, |
| 636 |
verify_code_switch}, |
| 637 |
{"tls", |
| 638 |
create_code_tls, |
| 639 |
verify_code_tls}, |
| 640 |
{"types", |
| 641 |
create_code_types, |
| 642 |
verify_code_types}, |
| 643 |
{"using_global", |
| 644 |
create_code_using_global, |
| 645 |
verify_code_using_global}, |
| 646 |
{"version", |
| 647 |
create_code_version, |
| 648 |
verify_code_version}, |
| 649 |
{"volatile", |
| 650 |
create_code_volatile, |
| 651 |
verify_code_volatile}, |
| 652 |
{"vector_perm", |
| 653 |
create_code_vector_perm, |
| 654 |
verify_code_vector_perm}, |
| 655 |
}; |
| 656 |
|
| 657 |
const int num_testcases = (sizeof (testcases) / sizeof (testcases[0])); |