Debian Codegraph @

gcc/testsuite/gcc.target/riscv/sat/sat_u_sub-run-3-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_SUB_FMT_3
8
9 DEF_SAT_U_SUB_FMT_3(T)
10
11 T test_data[][3] = {
12 /* arg_0, arg_1, expect */
13 { 0, 0, 0, },
14 { 0, 1, 0, },
15 { 1, 1, 0, },
16 { 18446744073709551615u, 18446744073709551614u, 1, },
17 { 18446744073709551615u, 18446744073709551615u, 0, },
18 { 18446744073709551614u, 18446744073709551615u, 0, },
19 { 18446744073709551613u, 18446744073709551614u, 0, },
20 { 0, 18446744073709551615u, 0, },
21 { 1, 18446744073709551615u, 0, },
22 { 43, 11, 32, },
23 };
24
25 #include "scalar_sat_binary.h"