Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/simd/saturating_arithmetic_autovect_3.c

raw
1 /* { dg-do assemble { target { aarch64*-*-* } } } */
2 /* { dg-options "-O2 --save-temps -ftree-vectorize" } */
3 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
4
5 /*
6 ** uadd_lane:
7 ** fmov\tw([0-9]+), s0
8 ** adds\tw([0-9]+), (?:w\1, w0|w0, w\1)
9 ** csinv\tw\2, w\2, wzr, cc
10 ** ret
11 */
12 /*
13 ** uaddq:
14 ** ...
15 ** ldr\tq([0-9]+), .*
16 ** ldr\tq([0-9]+), .*
17 ** uqadd\tv[0-9]+.4s, (?:v\1.4s, v\2.4s|v\2.4s, v\1.4s)
18 ** ...
19 ** ldr\tw([0-9]+), .*
20 ** ldr\tw([0-9]+), .*
21 ** adds\tw([0-9]+), (?:w\3, w\4|w\4, w\3)
22 ** csinv\tw\5, w\5, wzr, cc
23 ** ...
24 ** ldr\tw([0-9]+), .*
25 ** ldr\tw([0-9]+), .*
26 ** adds\tw([0-9]+), (?:w\6, w\7|w\7, w\6)
27 ** csinv\tw\8, w\8, wzr, cc
28 ** ...
29 */
30 /*
31 ** uaddq2:
32 ** ...
33 ** ldr\tq([0-9]+), .*
34 ** ldr\tq([0-9]+), .*
35 ** uqadd\tv[0-9]+.4s, (?:v\1.4s, v\2.4s|v\2.4s, v\1.4s)
36 ** ...
37 ** ldr\tw([0-9]+), .*
38 ** ldr\tw([0-9]+), .*
39 ** adds\tw([0-9]+), (?:w\3, w\4|w\4, w\3)
40 ** csinv\tw\5, w\5, wzr, cc
41 ** ...
42 ** ldr\tw([0-9]+), .*
43 ** ldr\tw([0-9]+), .*
44 ** adds\tw([0-9]+), (?:w\6, w\7|w\7, w\6)
45 ** csinv\tw\8, w\8, wzr, cc
46 ** ...
47 */
48 /*
49 ** usubq: { xfail *-*-* }
50 ** ...
51 ** ldr\tq([0-9]+), .*
52 ** ldr\tq([0-9]+), .*
53 ** uqsub\tv[0-9]+.4s, v\1.4s, v\2.4s
54 ** ...
55 ** ldr\tw([0-9]+), .*
56 ** ldr\tw([0-9]+), .*
57 ** subs\tw([0-9]+), w\3, w\4
58 ** csel\tw\5, w\5, wzr, cs
59 ** ...
60 ** ldr\tw([0-9]+), .*
61 ** ldr\tw([0-9]+), .*
62 ** subs\tw([0-9]+), w\6, w\7
63 ** csel\tw\8, w\8, wzr, cs
64 ** ...
65 */
66
67 #include <limits.h>
68 #include <arm_neon.h>
69
70 #define UT unsigned int
71 #define VT uint32x2_t
72 #define UMAX UINT_MAX
73 #define UMIN 0
74
75 #include "saturating_arithmetic_autovect.inc"