/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/ |
H A D | builtin-arith-overflow-2.c | 7 fn1 (long int x, long int y, int *ovf) argument 12 *ovf = __builtin_mul_overflow (x, y, &res); 19 fn2 (long int x, long int y, int *ovf) argument 24 *ovf = __builtin_mul_overflow (x, y, &res); 31 fn3 (unsigned char x, unsigned char y, int *ovf) argument 36 *ovf = __builtin_add_overflow (x, y, &res); 43 fn4 (unsigned char x, unsigned char y, int *ovf) argument 48 *ovf = __builtin_add_overflow (x, y, &res); 55 fn5 (long int x, unsigned long int y, int *ovf) argument 59 *ovf 66 int ovf; local [all...] |
H A D | builtin-arith-overflow-1.c | 5 because ovf is never used. */ 10 int ovf = __builtin_sub_overflow (x, y, &res); local 13 (void) ovf; 18 because ovf is never used. */ 23 int ovf = __builtin_mul_overflow (x, y, &res); local 26 (void) ovf; 34 fn3 (signed char x, unsigned short y, int *ovf) argument 37 *ovf = __builtin_add_overflow (x, y, &res); 45 fn4 (long int x, long int y, int *ovf) argument 50 *ovf 58 fn5(long int x, long int y, int *ovf) argument 71 fn6(unsigned char x, unsigned char y, int *ovf) argument 83 fn7(unsigned char x, unsigned char y, int *ovf) argument 95 int ovf; local [all...] |
H A D | pr17055-1.c | 13 v4sf ivf, ovf; variable 18 ovf = ivf - ivf;
|
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.law/ |
H A D | arg7.C | 13 int ovf(unsigned long, short, short) { printf ("PASS\n"); return 0; } function 14 int ovf( int, short, unsigned long) { printf ("FAIL\n"); return 1; } function 18 // ovf(unsigned long, unsigned int, unsigned int) 20 // it seems to me (and to cfront) that this should resolve to ovf #1 above, 21 // but g++ resolves it to ovf #2. Resolving to ovf #1 requires two conversions 22 // (unsigned int => short) while resolving to ovf #2 takes two conversions 32 return ovf(pixmap, x, y);
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.target/aarch64/ |
H A D | pr68106.c | 8 U upseu (U x, S y, int *ovf) argument 11 *ovf = __builtin_add_overflow (x, y, &res); 15 usueu (U x, U y, int *ovf) argument 18 *ovf = __builtin_sub_overflow (x, y, &res); 22 usseu (U x, S y, int *ovf) argument 25 *ovf = __builtin_sub_overflow (x, y, &res); 39 int ovf; local 41 if (upseu (u1, s2, &ovf) != (U) w || ovf != (w != (U) w)) 44 if (usueu (u1, u2, &ovf) ! [all...] |
/haiku-buildtools/gcc/gcc/testsuite/c-c++-common/torture/ |
H A D | builtin-arith-overflow-7.c | 18 n (t1 x, t2 y, int *ovf) \ 21 *ovf = __builtin_##b##_overflow (x, y, &res); \ 55 int ovf; local 58 if (n (t1##1, t2##2, &ovf) != (tr) w \ 59 || ovf != (w != (tr) w)) \
|
/haiku-buildtools/gcc/gcc/testsuite/jit.dg/ |
H A D | test-arith-overflow.c | 20 test_overflow_T_OP (T x, T y, bool *ovf) 24 *ovf = ...; // did overflow happen? 44 gcc_jit_param *ovf = local 48 t_bool_star, "ovf"); 49 gcc_jit_param *params[3] = {x, y, ovf}; 85 /* "*ovf = BUILTIN_CALL ();" */ 88 gcc_jit_rvalue_dereference (gcc_jit_param_as_rvalue (ovf), 144 note ("%s (%d, %d) returned: %d with ovf: %d", 167 note ("%s (%d, %d) returned: %d with ovf: %d",
|
/haiku-buildtools/gcc/gcc/ |
H A D | tree-vrp.c | 3813 tree op0, tree op1, bool *ovf) 3845 *ovf = arith_overflowed_p (subcode, type, vr0.min, 3848 subcode == MINUS_EXPR ? vr1.min : vr1.max) != *ovf) 3852 if (arith_overflowed_p (subcode, type, vr0.min, vr1.max) != *ovf 3853 || arith_overflowed_p (subcode, type, vr0.max, vr1.min) != *ovf) 3856 if (*ovf) 4177 bool ovf = false; local 4179 op0, op1, &ovf)) 4181 build_int_cst (type, ovf), 9834 bool ovf local 3812 check_for_binary_op_overflow(enum tree_code subcode, tree type, tree op0, tree op1, bool *ovf) argument [all...] |
H A D | tree-ssa-loop-manip.c | 129 bool ovf; local 131 if (!tree_expr_nonnegative_warnv_p (step, &ovf)
|
/haiku-buildtools/gcc/gcc/config/s390/ |
H A D | s390.c | 11498 tree gpr, fpr, ovf, sav, t; 11508 ovf = build3 (COMPONENT_REF, TREE_TYPE (f_ovf), valist, f_ovf, NULL_TREE); 11540 t = make_tree (TREE_TYPE (ovf), virtual_incoming_args_rtx); 11550 t = build2 (MODIFY_EXPR, TREE_TYPE (ovf), ovf, t); 11600 tree gpr, fpr, ovf, sav, reg, t, u; 11617 /* The tree for args* cannot be shared between gpr/fpr and ovf since 11620 ovf = build3 (COMPONENT_REF, TREE_TYPE (f_ovf), valist, f_ovf, NULL_TREE); 11745 t = ovf; 11758 gimplify_assign (ovf, 11497 tree gpr, fpr, ovf, sav, t; local 11599 tree gpr, fpr, ovf, sav, reg, t, u; local [all...] |
/haiku-buildtools/gcc/gcc/config/rs6000/ |
H A D | rs6000.c | 11348 tree gpr, fpr, ovf, sav, t; 11367 ovf = build3 (COMPONENT_REF, TREE_TYPE (f_ovf), unshare_expr (valist), 11406 t = make_tree (TREE_TYPE (ovf), virtual_incoming_args_rtx); 11409 t = build2 (MODIFY_EXPR, TREE_TYPE (ovf), ovf, t); 11437 tree gpr, fpr, ovf, sav, reg, t, u; 11535 ovf = build3 (COMPONENT_REF, TREE_TYPE (f_ovf), unshare_expr (valist), 11647 t = ovf; 11659 gimplify_assign (unshare_expr (ovf), t, pre_p); 11327 tree gpr, fpr, ovf, sav, t; local 11416 tree gpr, fpr, ovf, sav, reg, t, u; local [all...] |
/haiku-buildtools/gcc/gcc/c/ |
H A D | c-typeck.c | 4602 bool ovf; 4639 && tree_expr_nonnegative_warnv_p (op1, &ovf)) 4641 && tree_expr_nonnegative_warnv_p (op2, &ovf))) 4584 bool ovf; local
|
/haiku-buildtools/gcc/gcc/config/i386/ |
H A D | i386.c | 8955 tree gpr, fpr, ovf, sav, t; 9030 ovf = build3 (COMPONENT_REF, TREE_TYPE (f_ovf), unshare_expr (valist), 9059 type = TREE_TYPE (ovf); 9070 chkp_expand_bounds_reset_for_mem (ovf, t); 9072 t = build2 (MODIFY_EXPR, type, ovf, t); 9103 tree gpr, fpr, ovf, sav, t; 9126 ovf = build3 (COMPONENT_REF, TREE_TYPE (f_ovf), valist, f_ovf, NULL_TREE); 9364 t = ovf; 9368 t = fold_build_pointer_plus_hwi (ovf, align - 1); 9377 gimplify_assign (unshare_expr (ovf), 8939 tree gpr, fpr, ovf, sav, t; local 9087 tree gpr, fpr, ovf, sav, t; local [all...] |
/haiku-buildtools/gcc/gcc/c-family/ |
H A D | c-common.c | 11601 bool ovf; 11617 if (tree_expr_nonnegative_warnv_p (sop, &ovf)) 11582 bool ovf; local
|