Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/simd/saturating_arithmetic_autovect_1.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: { xfail *-*-* }
7 ** dup\tv([0-9]+).8b, w0
8 ** uqadd\tb([0-9]+), (?:b\1, b0|b0, b\1)
9 ** umov\tw0, v\2.b\[0\]
10 ** ret
11 */
12 /*
13 ** uaddq:
14 ** ...
15 ** ldr\tq([0-9]+), .*
16 ** ldr\tq([0-9]+), .*
17 ** uqadd\tv[0-9]+.16b, (?:v\1.16b, v\2.16b|v\2.16b, v\1.16b)
18 ** ...
19 ** ldr\td([0-9]+), .*
20 ** ldr\td([0-9]+), .*
21 ** uqadd\tv[0-9]+.8b, (?:v\3.8b, v\4.8b|v\4.8b, v\3.8b)
22 ** ...
23 ** ldr\tb([0-9]+), .*
24 ** ldr\tb([0-9]+), .*
25 ** uqadd\tb[0-9]+, (?:b\5, b\6|b\6, b\5)
26 ** ...
27 ** ldr\tb([0-9]+), .*
28 ** ldr\tb([0-9]+), .*
29 ** uqadd\tb[0-9]+, (?:b\7, b\8|b\8, b\7)
30 ** ...
31 */
32 /*
33 ** uaddq2:
34 ** ...
35 ** ldr\tq([0-9]+), .*
36 ** ldr\tq([0-9]+), .*
37 ** uqadd\tv[0-9]+.16b, (?:v\1.16b, v\2.16b|v\2.16b, v\1.16b)
38 ** ...
39 ** ldr\td([0-9]+), .*
40 ** ldr\td([0-9]+), .*
41 ** uqadd\tv[0-9]+.8b, (?:v\3.8b, v\4.8b|v\4.8b, v\3.8b)
42 ** ...
43 ** ldr\tb([0-9]+), .*
44 ** ldr\tb([0-9]+), .*
45 ** uqadd\tb[0-9]+, (?:b\5, b\6|b\6, b\5)
46 ** ...
47 ** uqadd\tb([0-9]+), (?:b[0-9]+, b\7|b\7, b[0-9]+)
48 ** ...
49 */
50 /*
51 ** usubq: { xfail *-*-* }
52 ** ...
53 ** ldr\tq([0-9]+), .*
54 ** ldr\tq([0-9]+), .*
55 ** uqsub\tv[0-9]+.16b, v\1.16b, v\2.16b
56 ** ...
57 ** ldr\td([0-9]+), .*
58 ** ldr\td([0-9]+), .*
59 ** uqsub\tv[0-9]+.8b, v\3.8b, v\4.8b
60 ** ...
61 ** ldr\tb([0-9]+), .*
62 ** ldr\tb([0-9]+), .*
63 ** uqsub\tb[0-9]+, b\5, b\6
64 ** ...
65 ** ldr\tb([0-9]+), .*
66 ** ldr\tb([0-9]+), .*
67 ** uqsub\tb[0-9]+, b\7, b\8
68 ** ...
69 */
70
71 #include <limits.h>
72 #include <arm_neon.h>
73
74 #define UT unsigned char
75 #define VT uint8x8_t
76 #define UMAX UCHAR_MAX
77 #define UMIN 0
78
79 #include "saturating_arithmetic_autovect.inc"