Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/saturating_arithmetic_4.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\tx([0-9]+), x([0-9]+), x([0-9]+)
8 ** csinv\tx\1, x\1, xzr, cc
9 ** ret
10 */
11 /*
12 ** uadd2:
13 ** adds\tx([0-9]+), x([0-9]+), x([0-9]+)
14 ** csinv\tx\1, x\1, xzr, cc
15 ** ret
16 */
17 /*
18 ** usub:
19 ** subs\tx([0-9]+), x([0-9]+), x([0-9]+)
20 ** csel\tx\1, x\1, xzr, cs
21 ** ret
22 */
23
24 #include <limits.h>
25
26 #define UT unsigned long
27 #define UMAX ULONG_MAX
28 #define UMIN 0
29
30 #include "saturating_arithmetic.inc"