]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/aarch64/sve2/acle/asm/whilerw_s64.c
[AArch64] Add support for the SVE2 ACLE
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve2 / acle / asm / whilerw_s64.c
1 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
2
3 #include "test_sve_acle.h"
4
5 /*
6 ** whilerw_rr_s64:
7 ** whilerw p0\.d, x0, x1
8 ** ret
9 */
10 TEST_COMPARE_S (whilerw_rr_s64, const int64_t *,
11 p0 = svwhilerw_s64 (x0, x1),
12 p0 = svwhilerw (x0, x1))
13
14 /*
15 ** whilerw_0r_s64:
16 ** whilerw p0\.d, xzr, x1
17 ** ret
18 */
19 TEST_COMPARE_S (whilerw_0r_s64, const int64_t *,
20 p0 = svwhilerw_s64 ((const int64_t *) 0, x1),
21 p0 = svwhilerw ((const int64_t *) 0, x1))
22
23 /*
24 ** whilerw_cr_s64:
25 ** mov (x[0-9]+), #?1073741824
26 ** whilerw p0\.d, \1, x1
27 ** ret
28 */
29 TEST_COMPARE_S (whilerw_cr_s64, const int64_t *,
30 p0 = svwhilerw_s64 ((const int64_t *) 1073741824, x1),
31 p0 = svwhilerw ((const int64_t *) 1073741824, x1))
32
33 /*
34 ** whilerw_r0_s64:
35 ** whilerw p0\.d, x0, xzr
36 ** ret
37 */
38 TEST_COMPARE_S (whilerw_r0_s64, const int64_t *,
39 p0 = svwhilerw_s64 (x0, (const int64_t *) 0),
40 p0 = svwhilerw (x0, (const int64_t *) 0))
41
42 /*
43 ** whilerw_rc_s64:
44 ** mov (x[0-9]+), #?1073741824
45 ** whilerw p0\.d, x0, \1
46 ** ret
47 */
48 TEST_COMPARE_S (whilerw_rc_s64, const int64_t *,
49 p0 = svwhilerw_s64 (x0, (const int64_t *) 1073741824),
50 p0 = svwhilerw (x0, (const int64_t *) 1073741824))