Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/saturating_arithmetic_3.c

raw
1 /* { dg-do compile { target { aarch64*-*-* } } } */
2 /* { dg-options "-O2 --save-temps -ftree-vectorize" } */
3 /* { dg-final { check-function-bodies "**" "" "" } } */
4
5 /*
6 ** uadd:
7 ** adds\tw([0-9]+), w([0-9]+), w([0-9]+)
8 ** csinv\tw\1, w\1, wzr, cc
9 ** ret
10 */
11 /*
12 ** uadd2:
13 ** adds\tw([0-9]+), w([0-9]+), w([0-9]+)
14 ** csinv\tw\1, w\1, wzr, cc
15 ** ret
16 */
17 /*
18 ** usub:
19 ** subs\tw([0-9]+), w([0-9]+), w([0-9]+)
20 ** csel\tw\1, w\1, wzr, cs
21 ** ret
22 */
23
24 #include <limits.h>
25
26 #define UT unsigned int
27 #define UMAX UINT_MAX
28 #define UMIN 0
29
30 #include "saturating_arithmetic.inc"