| 1 |
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */ |
| 2 |
|
| 3 |
#include "test_sme2_acle.h" |
| 4 |
|
| 5 |
/* |
| 6 |
** whilele_p1_rr_s64: |
| 7 |
** whilele {p[0-9]+\.d, p[0-9]+\.d}, x0, x1 |
| 8 |
** mov [^\n]+ |
| 9 |
** mov [^\n]+ |
| 10 |
** ret |
| 11 |
*/ |
| 12 |
TEST_COMPARE_S_X2 (whilele_p1_rr_s64, int64_t, |
| 13 |
p1 = svwhilele_b64_s64_x2 (x0, x1), |
| 14 |
p1 = svwhilele_b64_x2 (x0, x1)) |
| 15 |
|
| 16 |
/* |
| 17 |
** whilele_p4_rr_s64: |
| 18 |
** whilele {p4\.d, p5\.d}, x0, x1 |
| 19 |
** ret |
| 20 |
*/ |
| 21 |
TEST_COMPARE_S_X2 (whilele_p4_rr_s64, int64_t, |
| 22 |
p4 = svwhilele_b64_s64_x2 (x0, x1), |
| 23 |
p4 = svwhilele_b64_x2 (x0, x1)) |
| 24 |
|
| 25 |
/* |
| 26 |
** whilele_p9_rr_s64: |
| 27 |
** whilele {p[0-9]+\.d, p[0-9]+\.d}, x0, x1 |
| 28 |
** mov [^\n]+ |
| 29 |
** mov [^\n]+ |
| 30 |
** ret |
| 31 |
*/ |
| 32 |
TEST_COMPARE_S_X2 (whilele_p9_rr_s64, int64_t, |
| 33 |
p9 = svwhilele_b64_s64_x2 (x0, x1), |
| 34 |
p9 = svwhilele_b64_x2 (x0, x1)) |
| 35 |
|
| 36 |
/* |
| 37 |
** whilele_p14_rr_s64: |
| 38 |
** whilele {p14\.d, p15\.d}, x0, x1 |
| 39 |
** ret |
| 40 |
*/ |
| 41 |
TEST_COMPARE_S_X2 (whilele_p14_rr_s64, int64_t, |
| 42 |
p14 = svwhilele_b64_s64_x2 (x0, x1), |
| 43 |
p14 = svwhilele_b64_x2 (x0, x1)) |
| 44 |
|
| 45 |
/* |
| 46 |
** whilele_p4_0r_s64: |
| 47 |
** whilele {p4\.d, p5\.d}, xzr, x1 |
| 48 |
** ret |
| 49 |
*/ |
| 50 |
TEST_COMPARE_S_X2 (whilele_p4_0r_s64, int64_t, |
| 51 |
p4 = svwhilele_b64_x2 ((int64_t) 0, x1), |
| 52 |
p4 = svwhilele_b64_s64_x2 (0, x1)) |
| 53 |
|
| 54 |
/* |
| 55 |
** whilele_p4_5r_s64: |
| 56 |
** mov (x[0-9]+), #?5 |
| 57 |
** whilele {p4\.d, p5\.d}, \1, x1 |
| 58 |
** ret |
| 59 |
*/ |
| 60 |
TEST_COMPARE_S_X2 (whilele_p4_5r_s64, int64_t, |
| 61 |
p4 = svwhilele_b64_x2 ((int64_t) 5, x1), |
| 62 |
p4 = svwhilele_b64_s64_x2 (5, x1)) |
| 63 |
|
| 64 |
/* |
| 65 |
** whilele_p4_r0_s64: |
| 66 |
** whilele {p4\.d, p5\.d}, x0, xzr |
| 67 |
** ret |
| 68 |
*/ |
| 69 |
TEST_COMPARE_S_X2 (whilele_p4_r0_s64, int64_t, |
| 70 |
p4 = svwhilele_b64_x2 (x0, (int64_t) 0), |
| 71 |
p4 = svwhilele_b64_s64_x2 (x0, 0)) |
| 72 |
|
| 73 |
/* |
| 74 |
** whilele_p14_r5_s64: |
| 75 |
** mov (x[0-9]+), #?5 |
| 76 |
** whilele {p14\.d, p15\.d}, x0, \1 |
| 77 |
** ret |
| 78 |
*/ |
| 79 |
TEST_COMPARE_S_X2 (whilele_p14_r5_s64, int64_t, |
| 80 |
p14 = svwhilele_b64_x2 (x0, (int64_t) 5), |
| 81 |
p14 = svwhilele_b64_s64_x2 (x0, 5)) |
| 82 |
|
| 83 |
/* |
| 84 |
** whilele_p4_rr_u64: |
| 85 |
** whilels {p4\.d, p5\.d}, x0, x1 |
| 86 |
** ret |
| 87 |
*/ |
| 88 |
TEST_COMPARE_S_X2 (whilele_p4_rr_u64, uint64_t, |
| 89 |
p4 = svwhilele_b64_u64_x2 (x0, x1), |
| 90 |
p4 = svwhilele_b64_x2 (x0, x1)) |
| 91 |
|
| 92 |
/* |
| 93 |
** whilele_p4_0r_u64: |
| 94 |
** whilels {p4\.d, p5\.d}, xzr, x1 |
| 95 |
** ret |
| 96 |
*/ |
| 97 |
TEST_COMPARE_S_X2 (whilele_p4_0r_u64, uint64_t, |
| 98 |
p4 = svwhilele_b64_x2 ((uint64_t) 0, x1), |
| 99 |
p4 = svwhilele_b64_u64_x2 (0, x1)) |
| 100 |
|
| 101 |
/* |
| 102 |
** whilele_p4_5r_u64: |
| 103 |
** mov (x[0-9]+), #?5 |
| 104 |
** whilels {p4\.d, p5\.d}, \1, x1 |
| 105 |
** ret |
| 106 |
*/ |
| 107 |
TEST_COMPARE_S_X2 (whilele_p4_5r_u64, uint64_t, |
| 108 |
p4 = svwhilele_b64_x2 ((uint64_t) 5, x1), |
| 109 |
p4 = svwhilele_b64_u64_x2 (5, x1)) |
| 110 |
|
| 111 |
/* |
| 112 |
** whilele_p4_r5_u64: |
| 113 |
** mov (x[0-9]+), #?5 |
| 114 |
** whilels {p4\.d, p5\.d}, x0, \1 |
| 115 |
** ret |
| 116 |
*/ |
| 117 |
TEST_COMPARE_S_X2 (whilele_p4_r5_u64, uint64_t, |
| 118 |
p4 = svwhilele_b64_x2 (x0, (uint64_t) 5), |
| 119 |
p4 = svwhilele_b64_u64_x2 (x0, 5)) |