Debian Codegraph @

gcc/testsuite/gcc.target/riscv/sat/sat_u_sub-run-6-u8.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 uint8_t
7 #define RUN_SAT_BINARY RUN_SAT_U_SUB_FMT_6
8
9 DEF_SAT_U_SUB_FMT_6(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 { 255, 254, 1, },
17 { 255, 255, 0, },
18 { 254, 255, 0, },
19 { 253, 254, 0, },
20 { 0, 255, 0, },
21 { 1, 255, 0, },
22 { 32, 5, 27, },
23 };
24
25 #include "scalar_sat_binary.h"