/* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */ /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */ #include "test_sve_acle.h" /* ** ld1sh_gather_s64_tied1: ** ld1sh z0\.d, p0/z, \[z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_s64_tied1, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_s64 (p0, z0), z0_res = svld1sh_gather_s64 (p0, z0)) /* ** ld1sh_gather_s64_untied: ** ld1sh z0\.d, p0/z, \[z1\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_s64_untied, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_s64 (p0, z1), z0_res = svld1sh_gather_s64 (p0, z1)) /* ** ld1sh_gather_x0_s64_offset: ** ld1sh z0\.d, p0/z, \[x0, z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_x0_s64_offset, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_offset_s64 (p0, z0, x0), z0_res = svld1sh_gather_offset_s64 (p0, z0, x0)) /* ** ld1sh_gather_m2_s64_offset: ** mov (x[0-9]+), #?-2 ** ld1sh z0\.d, p0/z, \[\1, z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_m2_s64_offset, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_offset_s64 (p0, z0, -2), z0_res = svld1sh_gather_offset_s64 (p0, z0, -2)) /* ** ld1sh_gather_0_s64_offset: ** ld1sh z0\.d, p0/z, \[z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_0_s64_offset, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_offset_s64 (p0, z0, 0), z0_res = svld1sh_gather_offset_s64 (p0, z0, 0)) /* ** ld1sh_gather_5_s64_offset: ** mov (x[0-9]+), #?5 ** ld1sh z0\.d, p0/z, \[\1, z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_5_s64_offset, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_offset_s64 (p0, z0, 5), z0_res = svld1sh_gather_offset_s64 (p0, z0, 5)) /* ** ld1sh_gather_6_s64_offset: ** ld1sh z0\.d, p0/z, \[z0\.d, #6\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_6_s64_offset, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_offset_s64 (p0, z0, 6), z0_res = svld1sh_gather_offset_s64 (p0, z0, 6)) /* ** ld1sh_gather_62_s64_offset: ** ld1sh z0\.d, p0/z, \[z0\.d, #62\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_62_s64_offset, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_offset_s64 (p0, z0, 62), z0_res = svld1sh_gather_offset_s64 (p0, z0, 62)) /* ** ld1sh_gather_64_s64_offset: ** mov (x[0-9]+), #?64 ** ld1sh z0\.d, p0/z, \[\1, z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_64_s64_offset, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_offset_s64 (p0, z0, 64), z0_res = svld1sh_gather_offset_s64 (p0, z0, 64)) /* ** ld1sh_gather_x0_s64_index: ** lsl (x[0-9]+), x0, #?1 ** ld1sh z0\.d, p0/z, \[\1, z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_x0_s64_index, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_index_s64 (p0, z0, x0), z0_res = svld1sh_gather_index_s64 (p0, z0, x0)) /* ** ld1sh_gather_m1_s64_index: ** mov (x[0-9]+), #?-2 ** ld1sh z0\.d, p0/z, \[\1, z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_m1_s64_index, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_index_s64 (p0, z0, -1), z0_res = svld1sh_gather_index_s64 (p0, z0, -1)) /* ** ld1sh_gather_0_s64_index: ** ld1sh z0\.d, p0/z, \[z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_0_s64_index, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_index_s64 (p0, z0, 0), z0_res = svld1sh_gather_index_s64 (p0, z0, 0)) /* ** ld1sh_gather_5_s64_index: ** ld1sh z0\.d, p0/z, \[z0\.d, #10\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_5_s64_index, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_index_s64 (p0, z0, 5), z0_res = svld1sh_gather_index_s64 (p0, z0, 5)) /* ** ld1sh_gather_31_s64_index: ** ld1sh z0\.d, p0/z, \[z0\.d, #62\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_31_s64_index, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_index_s64 (p0, z0, 31), z0_res = svld1sh_gather_index_s64 (p0, z0, 31)) /* ** ld1sh_gather_32_s64_index: ** mov (x[0-9]+), #?64 ** ld1sh z0\.d, p0/z, \[\1, z0\.d\] ** ret */ TEST_LOAD_GATHER_ZS (ld1sh_gather_32_s64_index, svint64_t, svuint64_t, z0_res = svld1sh_gather_u64base_index_s64 (p0, z0, 32), z0_res = svld1sh_gather_index_s64 (p0, z0, 32)) /* ** ld1sh_gather_x0_s64_s64offset: ** ld1sh z0\.d, p0/z, \[x0, z0\.d\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_x0_s64_s64offset, svint64_t, int16_t, svint64_t, z0_res = svld1sh_gather_s64offset_s64 (p0, x0, z0), z0_res = svld1sh_gather_offset_s64 (p0, x0, z0)) /* ** ld1sh_gather_tied1_s64_s64offset: ** ld1sh z0\.d, p0/z, \[x0, z0\.d\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_tied1_s64_s64offset, svint64_t, int16_t, svint64_t, z0_res = svld1sh_gather_s64offset_s64 (p0, x0, z0), z0_res = svld1sh_gather_offset_s64 (p0, x0, z0)) /* ** ld1sh_gather_untied_s64_s64offset: ** ld1sh z0\.d, p0/z, \[x0, z1\.d\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_untied_s64_s64offset, svint64_t, int16_t, svint64_t, z0_res = svld1sh_gather_s64offset_s64 (p0, x0, z1), z0_res = svld1sh_gather_offset_s64 (p0, x0, z1)) /* ** ld1sh_gather_ext_s64_s64offset: ** ld1sh z0\.d, p0/z, \[x0, z1\.d, sxtw\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_ext_s64_s64offset, svint64_t, int16_t, svint64_t, z0_res = svld1sh_gather_s64offset_s64 (p0, x0, svextw_s64_x (p0, z1)), z0_res = svld1sh_gather_offset_s64 (p0, x0, svextw_x (p0, z1))) /* ** ld1sh_gather_x0_s64_u64offset: ** ld1sh z0\.d, p0/z, \[x0, z0\.d\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_x0_s64_u64offset, svint64_t, int16_t, svuint64_t, z0_res = svld1sh_gather_u64offset_s64 (p0, x0, z0), z0_res = svld1sh_gather_offset_s64 (p0, x0, z0)) /* ** ld1sh_gather_tied1_s64_u64offset: ** ld1sh z0\.d, p0/z, \[x0, z0\.d\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_tied1_s64_u64offset, svint64_t, int16_t, svuint64_t, z0_res = svld1sh_gather_u64offset_s64 (p0, x0, z0), z0_res = svld1sh_gather_offset_s64 (p0, x0, z0)) /* ** ld1sh_gather_untied_s64_u64offset: ** ld1sh z0\.d, p0/z, \[x0, z1\.d\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_untied_s64_u64offset, svint64_t, int16_t, svuint64_t, z0_res = svld1sh_gather_u64offset_s64 (p0, x0, z1), z0_res = svld1sh_gather_offset_s64 (p0, x0, z1)) /* ** ld1sh_gather_ext_s64_u64offset: ** ld1sh z0\.d, p0/z, \[x0, z1\.d, uxtw\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_ext_s64_u64offset, svint64_t, int16_t, svuint64_t, z0_res = svld1sh_gather_u64offset_s64 (p0, x0, svextw_u64_x (p0, z1)), z0_res = svld1sh_gather_offset_s64 (p0, x0, svextw_x (p0, z1))) /* ** ld1sh_gather_x0_s64_s64index: ** ld1sh z0\.d, p0/z, \[x0, z0\.d, lsl 1\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_x0_s64_s64index, svint64_t, int16_t, svint64_t, z0_res = svld1sh_gather_s64index_s64 (p0, x0, z0), z0_res = svld1sh_gather_index_s64 (p0, x0, z0)) /* ** ld1sh_gather_tied1_s64_s64index: ** ld1sh z0\.d, p0/z, \[x0, z0\.d, lsl 1\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_tied1_s64_s64index, svint64_t, int16_t, svint64_t, z0_res = svld1sh_gather_s64index_s64 (p0, x0, z0), z0_res = svld1sh_gather_index_s64 (p0, x0, z0)) /* ** ld1sh_gather_untied_s64_s64index: ** ld1sh z0\.d, p0/z, \[x0, z1\.d, lsl 1\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_untied_s64_s64index, svint64_t, int16_t, svint64_t, z0_res = svld1sh_gather_s64index_s64 (p0, x0, z1), z0_res = svld1sh_gather_index_s64 (p0, x0, z1)) /* ** ld1sh_gather_ext_s64_s64index: ** ld1sh z0\.d, p0/z, \[x0, z1\.d, sxtw 1\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_ext_s64_s64index, svint64_t, int16_t, svint64_t, z0_res = svld1sh_gather_s64index_s64 (p0, x0, svextw_s64_x (p0, z1)), z0_res = svld1sh_gather_index_s64 (p0, x0, svextw_x (p0, z1))) /* ** ld1sh_gather_x0_s64_u64index: ** ld1sh z0\.d, p0/z, \[x0, z0\.d, lsl 1\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_x0_s64_u64index, svint64_t, int16_t, svuint64_t, z0_res = svld1sh_gather_u64index_s64 (p0, x0, z0), z0_res = svld1sh_gather_index_s64 (p0, x0, z0)) /* ** ld1sh_gather_tied1_s64_u64index: ** ld1sh z0\.d, p0/z, \[x0, z0\.d, lsl 1\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_tied1_s64_u64index, svint64_t, int16_t, svuint64_t, z0_res = svld1sh_gather_u64index_s64 (p0, x0, z0), z0_res = svld1sh_gather_index_s64 (p0, x0, z0)) /* ** ld1sh_gather_untied_s64_u64index: ** ld1sh z0\.d, p0/z, \[x0, z1\.d, lsl 1\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_untied_s64_u64index, svint64_t, int16_t, svuint64_t, z0_res = svld1sh_gather_u64index_s64 (p0, x0, z1), z0_res = svld1sh_gather_index_s64 (p0, x0, z1)) /* ** ld1sh_gather_ext_s64_u64index: ** ld1sh z0\.d, p0/z, \[x0, z1\.d, uxtw 1\] ** ret */ TEST_LOAD_GATHER_SZ (ld1sh_gather_ext_s64_u64index, svint64_t, int16_t, svuint64_t, z0_res = svld1sh_gather_u64index_s64 (p0, x0, svextw_u64_x (p0, z1)), z0_res = svld1sh_gather_index_s64 (p0, x0, svextw_x (p0, z1)))