| 1 |
/* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */ |
| 2 |
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */ |
| 3 |
|
| 4 |
#include "test_sve_acle.h" |
| 5 |
|
| 6 |
/* |
| 7 |
** ld1sb_gather_s64_tied1: |
| 8 |
** ld1sb z0\.d, p0/z, \[z0\.d\] |
| 9 |
** ret |
| 10 |
*/ |
| 11 |
TEST_LOAD_GATHER_ZS (ld1sb_gather_s64_tied1, svint64_t, svuint64_t, |
| 12 |
z0_res = svld1sb_gather_u64base_s64 (p0, z0), |
| 13 |
z0_res = svld1sb_gather_s64 (p0, z0)) |
| 14 |
|
| 15 |
/* |
| 16 |
** ld1sb_gather_s64_untied: |
| 17 |
** ld1sb z0\.d, p0/z, \[z1\.d\] |
| 18 |
** ret |
| 19 |
*/ |
| 20 |
TEST_LOAD_GATHER_ZS (ld1sb_gather_s64_untied, svint64_t, svuint64_t, |
| 21 |
z0_res = svld1sb_gather_u64base_s64 (p0, z1), |
| 22 |
z0_res = svld1sb_gather_s64 (p0, z1)) |
| 23 |
|
| 24 |
/* |
| 25 |
** ld1sb_gather_x0_s64_offset: |
| 26 |
** ld1sb z0\.d, p0/z, \[x0, z0\.d\] |
| 27 |
** ret |
| 28 |
*/ |
| 29 |
TEST_LOAD_GATHER_ZS (ld1sb_gather_x0_s64_offset, svint64_t, svuint64_t, |
| 30 |
z0_res = svld1sb_gather_u64base_offset_s64 (p0, z0, x0), |
| 31 |
z0_res = svld1sb_gather_offset_s64 (p0, z0, x0)) |
| 32 |
|
| 33 |
/* |
| 34 |
** ld1sb_gather_m1_s64_offset: |
| 35 |
** mov (x[0-9]+), #?-1 |
| 36 |
** ld1sb z0\.d, p0/z, \[\1, z0\.d\] |
| 37 |
** ret |
| 38 |
*/ |
| 39 |
TEST_LOAD_GATHER_ZS (ld1sb_gather_m1_s64_offset, svint64_t, svuint64_t, |
| 40 |
z0_res = svld1sb_gather_u64base_offset_s64 (p0, z0, -1), |
| 41 |
z0_res = svld1sb_gather_offset_s64 (p0, z0, -1)) |
| 42 |
|
| 43 |
/* |
| 44 |
** ld1sb_gather_0_s64_offset: |
| 45 |
** ld1sb z0\.d, p0/z, \[z0\.d\] |
| 46 |
** ret |
| 47 |
*/ |
| 48 |
TEST_LOAD_GATHER_ZS (ld1sb_gather_0_s64_offset, svint64_t, svuint64_t, |
| 49 |
z0_res = svld1sb_gather_u64base_offset_s64 (p0, z0, 0), |
| 50 |
z0_res = svld1sb_gather_offset_s64 (p0, z0, 0)) |
| 51 |
|
| 52 |
/* |
| 53 |
** ld1sb_gather_5_s64_offset: |
| 54 |
** ld1sb z0\.d, p0/z, \[z0\.d, #5\] |
| 55 |
** ret |
| 56 |
*/ |
| 57 |
TEST_LOAD_GATHER_ZS (ld1sb_gather_5_s64_offset, svint64_t, svuint64_t, |
| 58 |
z0_res = svld1sb_gather_u64base_offset_s64 (p0, z0, 5), |
| 59 |
z0_res = svld1sb_gather_offset_s64 (p0, z0, 5)) |
| 60 |
|
| 61 |
/* |
| 62 |
** ld1sb_gather_31_s64_offset: |
| 63 |
** ld1sb z0\.d, p0/z, \[z0\.d, #31\] |
| 64 |
** ret |
| 65 |
*/ |
| 66 |
TEST_LOAD_GATHER_ZS (ld1sb_gather_31_s64_offset, svint64_t, svuint64_t, |
| 67 |
z0_res = svld1sb_gather_u64base_offset_s64 (p0, z0, 31), |
| 68 |
z0_res = svld1sb_gather_offset_s64 (p0, z0, 31)) |
| 69 |
|
| 70 |
/* |
| 71 |
** ld1sb_gather_32_s64_offset: |
| 72 |
** mov (x[0-9]+), #?32 |
| 73 |
** ld1sb z0\.d, p0/z, \[\1, z0\.d\] |
| 74 |
** ret |
| 75 |
*/ |
| 76 |
TEST_LOAD_GATHER_ZS (ld1sb_gather_32_s64_offset, svint64_t, svuint64_t, |
| 77 |
z0_res = svld1sb_gather_u64base_offset_s64 (p0, z0, 32), |
| 78 |
z0_res = svld1sb_gather_offset_s64 (p0, z0, 32)) |
| 79 |
|
| 80 |
/* |
| 81 |
** ld1sb_gather_x0_s64_s64offset: |
| 82 |
** ld1sb z0\.d, p0/z, \[x0, z0\.d\] |
| 83 |
** ret |
| 84 |
*/ |
| 85 |
TEST_LOAD_GATHER_SZ (ld1sb_gather_x0_s64_s64offset, svint64_t, int8_t, svint64_t, |
| 86 |
z0_res = svld1sb_gather_s64offset_s64 (p0, x0, z0), |
| 87 |
z0_res = svld1sb_gather_offset_s64 (p0, x0, z0)) |
| 88 |
|
| 89 |
/* |
| 90 |
** ld1sb_gather_tied1_s64_s64offset: |
| 91 |
** ld1sb z0\.d, p0/z, \[x0, z0\.d\] |
| 92 |
** ret |
| 93 |
*/ |
| 94 |
TEST_LOAD_GATHER_SZ (ld1sb_gather_tied1_s64_s64offset, svint64_t, int8_t, svint64_t, |
| 95 |
z0_res = svld1sb_gather_s64offset_s64 (p0, x0, z0), |
| 96 |
z0_res = svld1sb_gather_offset_s64 (p0, x0, z0)) |
| 97 |
|
| 98 |
/* |
| 99 |
** ld1sb_gather_untied_s64_s64offset: |
| 100 |
** ld1sb z0\.d, p0/z, \[x0, z1\.d\] |
| 101 |
** ret |
| 102 |
*/ |
| 103 |
TEST_LOAD_GATHER_SZ (ld1sb_gather_untied_s64_s64offset, svint64_t, int8_t, svint64_t, |
| 104 |
z0_res = svld1sb_gather_s64offset_s64 (p0, x0, z1), |
| 105 |
z0_res = svld1sb_gather_offset_s64 (p0, x0, z1)) |
| 106 |
|
| 107 |
/* |
| 108 |
** ld1sb_gather_ext_s64_s64offset: |
| 109 |
** ld1sb z0\.d, p0/z, \[x0, z1\.d, sxtw\] |
| 110 |
** ret |
| 111 |
*/ |
| 112 |
TEST_LOAD_GATHER_SZ (ld1sb_gather_ext_s64_s64offset, svint64_t, int8_t, svint64_t, |
| 113 |
z0_res = svld1sb_gather_s64offset_s64 (p0, x0, svextw_s64_x (p0, z1)), |
| 114 |
z0_res = svld1sb_gather_offset_s64 (p0, x0, svextw_x (p0, z1))) |
| 115 |
|
| 116 |
/* |
| 117 |
** ld1sb_gather_x0_s64_u64offset: |
| 118 |
** ld1sb z0\.d, p0/z, \[x0, z0\.d\] |
| 119 |
** ret |
| 120 |
*/ |
| 121 |
TEST_LOAD_GATHER_SZ (ld1sb_gather_x0_s64_u64offset, svint64_t, int8_t, svuint64_t, |
| 122 |
z0_res = svld1sb_gather_u64offset_s64 (p0, x0, z0), |
| 123 |
z0_res = svld1sb_gather_offset_s64 (p0, x0, z0)) |
| 124 |
|
| 125 |
/* |
| 126 |
** ld1sb_gather_tied1_s64_u64offset: |
| 127 |
** ld1sb z0\.d, p0/z, \[x0, z0\.d\] |
| 128 |
** ret |
| 129 |
*/ |
| 130 |
TEST_LOAD_GATHER_SZ (ld1sb_gather_tied1_s64_u64offset, svint64_t, int8_t, svuint64_t, |
| 131 |
z0_res = svld1sb_gather_u64offset_s64 (p0, x0, z0), |
| 132 |
z0_res = svld1sb_gather_offset_s64 (p0, x0, z0)) |
| 133 |
|
| 134 |
/* |
| 135 |
** ld1sb_gather_untied_s64_u64offset: |
| 136 |
** ld1sb z0\.d, p0/z, \[x0, z1\.d\] |
| 137 |
** ret |
| 138 |
*/ |
| 139 |
TEST_LOAD_GATHER_SZ (ld1sb_gather_untied_s64_u64offset, svint64_t, int8_t, svuint64_t, |
| 140 |
z0_res = svld1sb_gather_u64offset_s64 (p0, x0, z1), |
| 141 |
z0_res = svld1sb_gather_offset_s64 (p0, x0, z1)) |
| 142 |
|
| 143 |
/* |
| 144 |
** ld1sb_gather_ext_s64_u64offset: |
| 145 |
** ld1sb z0\.d, p0/z, \[x0, z1\.d, uxtw\] |
| 146 |
** ret |
| 147 |
*/ |
| 148 |
TEST_LOAD_GATHER_SZ (ld1sb_gather_ext_s64_u64offset, svint64_t, int8_t, svuint64_t, |
| 149 |
z0_res = svld1sb_gather_u64offset_s64 (p0, x0, svextw_u64_x (p0, z1)), |
| 150 |
z0_res = svld1sb_gather_offset_s64 (p0, x0, svextw_x (p0, z1))) |