Debian Codegraph @

gcc/testsuite/gcc.target/riscv/sat/sat_u_add-run-5-u64.c

raw
1 /* { dg-do run { target { riscv_v } } } */
2 /* { dg-additional-options "-std=c99" } */
3
4 #include "sat_arith.h"
5
6 #define T uint64_t
7 #define RUN_SAT_BINARY RUN_SAT_U_ADD_FMT_5
8
9 DEF_SAT_U_ADD_FMT_5(T)
10
11 T test_data[][3] = {
12 /* arg_0, arg_1, expect */
13 { 0, 0, 0, },
14 { 0, 1, 1, },
15 { 1, 1, 2, },
16 { 0, 18446744073709551614u, 18446744073709551614u, },
17 { 1, 18446744073709551614u, 18446744073709551615u, },
18 { 2, 18446744073709551614u, 18446744073709551615u, },
19 { 0, 18446744073709551615u, 18446744073709551615u, },
20 { 1, 18446744073709551615u, 18446744073709551615u, },
21 { 2, 18446744073709551615u, 18446744073709551615u, },
22 { 18446744073709551615u, 18446744073709551615u, 18446744073709551615u, },
23 };
24
25 #include "scalar_sat_binary.h"