(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
sve/
acle/
asm/
ld1sh_gather_u32.c
       1  /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */
       2  
       3  #include "test_sve_acle.h"
       4  
       5  /*
       6  ** ld1sh_gather_u32_tied1:
       7  **	ld1sh	z0\.s, p0/z, \[z0\.s\]
       8  **	ret
       9  */
      10  TEST_LOAD_GATHER_ZS (ld1sh_gather_u32_tied1, svuint32_t, svuint32_t,
      11  		     z0_res = svld1sh_gather_u32base_u32 (p0, z0),
      12  		     z0_res = svld1sh_gather_u32 (p0, z0))
      13  
      14  /*
      15  ** ld1sh_gather_u32_untied:
      16  **	ld1sh	z0\.s, p0/z, \[z1\.s\]
      17  **	ret
      18  */
      19  TEST_LOAD_GATHER_ZS (ld1sh_gather_u32_untied, svuint32_t, svuint32_t,
      20  		     z0_res = svld1sh_gather_u32base_u32 (p0, z1),
      21  		     z0_res = svld1sh_gather_u32 (p0, z1))
      22  
      23  /*
      24  ** ld1sh_gather_x0_u32_offset:
      25  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, uxtw\]
      26  **	ret
      27  */
      28  TEST_LOAD_GATHER_ZS (ld1sh_gather_x0_u32_offset, svuint32_t, svuint32_t,
      29  		     z0_res = svld1sh_gather_u32base_offset_u32 (p0, z0, x0),
      30  		     z0_res = svld1sh_gather_offset_u32 (p0, z0, x0))
      31  
      32  /*
      33  ** ld1sh_gather_m2_u32_offset:
      34  **	mov	(x[0-9]+), #?-2
      35  **	ld1sh	z0\.s, p0/z, \[\1, z0\.s, uxtw\]
      36  **	ret
      37  */
      38  TEST_LOAD_GATHER_ZS (ld1sh_gather_m2_u32_offset, svuint32_t, svuint32_t,
      39  		     z0_res = svld1sh_gather_u32base_offset_u32 (p0, z0, -2),
      40  		     z0_res = svld1sh_gather_offset_u32 (p0, z0, -2))
      41  
      42  /*
      43  ** ld1sh_gather_0_u32_offset:
      44  **	ld1sh	z0\.s, p0/z, \[z0\.s\]
      45  **	ret
      46  */
      47  TEST_LOAD_GATHER_ZS (ld1sh_gather_0_u32_offset, svuint32_t, svuint32_t,
      48  		     z0_res = svld1sh_gather_u32base_offset_u32 (p0, z0, 0),
      49  		     z0_res = svld1sh_gather_offset_u32 (p0, z0, 0))
      50  
      51  /*
      52  ** ld1sh_gather_5_u32_offset:
      53  **	mov	(x[0-9]+), #?5
      54  **	ld1sh	z0\.s, p0/z, \[\1, z0\.s, uxtw\]
      55  **	ret
      56  */
      57  TEST_LOAD_GATHER_ZS (ld1sh_gather_5_u32_offset, svuint32_t, svuint32_t,
      58  		     z0_res = svld1sh_gather_u32base_offset_u32 (p0, z0, 5),
      59  		     z0_res = svld1sh_gather_offset_u32 (p0, z0, 5))
      60  
      61  /*
      62  ** ld1sh_gather_6_u32_offset:
      63  **	ld1sh	z0\.s, p0/z, \[z0\.s, #6\]
      64  **	ret
      65  */
      66  TEST_LOAD_GATHER_ZS (ld1sh_gather_6_u32_offset, svuint32_t, svuint32_t,
      67  		     z0_res = svld1sh_gather_u32base_offset_u32 (p0, z0, 6),
      68  		     z0_res = svld1sh_gather_offset_u32 (p0, z0, 6))
      69  
      70  /*
      71  ** ld1sh_gather_62_u32_offset:
      72  **	ld1sh	z0\.s, p0/z, \[z0\.s, #62\]
      73  **	ret
      74  */
      75  TEST_LOAD_GATHER_ZS (ld1sh_gather_62_u32_offset, svuint32_t, svuint32_t,
      76  		     z0_res = svld1sh_gather_u32base_offset_u32 (p0, z0, 62),
      77  		     z0_res = svld1sh_gather_offset_u32 (p0, z0, 62))
      78  
      79  /*
      80  ** ld1sh_gather_64_u32_offset:
      81  **	mov	(x[0-9]+), #?64
      82  **	ld1sh	z0\.s, p0/z, \[\1, z0\.s, uxtw\]
      83  **	ret
      84  */
      85  TEST_LOAD_GATHER_ZS (ld1sh_gather_64_u32_offset, svuint32_t, svuint32_t,
      86  		     z0_res = svld1sh_gather_u32base_offset_u32 (p0, z0, 64),
      87  		     z0_res = svld1sh_gather_offset_u32 (p0, z0, 64))
      88  
      89  /*
      90  ** ld1sh_gather_x0_u32_index:
      91  **	lsl	(x[0-9]+), x0, #?1
      92  **	ld1sh	z0\.s, p0/z, \[\1, z0\.s, uxtw\]
      93  **	ret
      94  */
      95  TEST_LOAD_GATHER_ZS (ld1sh_gather_x0_u32_index, svuint32_t, svuint32_t,
      96  		     z0_res = svld1sh_gather_u32base_index_u32 (p0, z0, x0),
      97  		     z0_res = svld1sh_gather_index_u32 (p0, z0, x0))
      98  
      99  /*
     100  ** ld1sh_gather_m1_u32_index:
     101  **	mov	(x[0-9]+), #?-2
     102  **	ld1sh	z0\.s, p0/z, \[\1, z0\.s, uxtw\]
     103  **	ret
     104  */
     105  TEST_LOAD_GATHER_ZS (ld1sh_gather_m1_u32_index, svuint32_t, svuint32_t,
     106  		     z0_res = svld1sh_gather_u32base_index_u32 (p0, z0, -1),
     107  		     z0_res = svld1sh_gather_index_u32 (p0, z0, -1))
     108  
     109  /*
     110  ** ld1sh_gather_0_u32_index:
     111  **	ld1sh	z0\.s, p0/z, \[z0\.s\]
     112  **	ret
     113  */
     114  TEST_LOAD_GATHER_ZS (ld1sh_gather_0_u32_index, svuint32_t, svuint32_t,
     115  		     z0_res = svld1sh_gather_u32base_index_u32 (p0, z0, 0),
     116  		     z0_res = svld1sh_gather_index_u32 (p0, z0, 0))
     117  
     118  /*
     119  ** ld1sh_gather_5_u32_index:
     120  **	ld1sh	z0\.s, p0/z, \[z0\.s, #10\]
     121  **	ret
     122  */
     123  TEST_LOAD_GATHER_ZS (ld1sh_gather_5_u32_index, svuint32_t, svuint32_t,
     124  		     z0_res = svld1sh_gather_u32base_index_u32 (p0, z0, 5),
     125  		     z0_res = svld1sh_gather_index_u32 (p0, z0, 5))
     126  
     127  /*
     128  ** ld1sh_gather_31_u32_index:
     129  **	ld1sh	z0\.s, p0/z, \[z0\.s, #62\]
     130  **	ret
     131  */
     132  TEST_LOAD_GATHER_ZS (ld1sh_gather_31_u32_index, svuint32_t, svuint32_t,
     133  		     z0_res = svld1sh_gather_u32base_index_u32 (p0, z0, 31),
     134  		     z0_res = svld1sh_gather_index_u32 (p0, z0, 31))
     135  
     136  /*
     137  ** ld1sh_gather_32_u32_index:
     138  **	mov	(x[0-9]+), #?64
     139  **	ld1sh	z0\.s, p0/z, \[\1, z0\.s, uxtw\]
     140  **	ret
     141  */
     142  TEST_LOAD_GATHER_ZS (ld1sh_gather_32_u32_index, svuint32_t, svuint32_t,
     143  		     z0_res = svld1sh_gather_u32base_index_u32 (p0, z0, 32),
     144  		     z0_res = svld1sh_gather_index_u32 (p0, z0, 32))
     145  
     146  /*
     147  ** ld1sh_gather_x0_u32_s32offset:
     148  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, sxtw\]
     149  **	ret
     150  */
     151  TEST_LOAD_GATHER_SZ (ld1sh_gather_x0_u32_s32offset, svuint32_t, int16_t, svint32_t,
     152  		     z0_res = svld1sh_gather_s32offset_u32 (p0, x0, z0),
     153  		     z0_res = svld1sh_gather_offset_u32 (p0, x0, z0))
     154  
     155  /*
     156  ** ld1sh_gather_tied1_u32_s32offset:
     157  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, sxtw\]
     158  **	ret
     159  */
     160  TEST_LOAD_GATHER_SZ (ld1sh_gather_tied1_u32_s32offset, svuint32_t, int16_t, svint32_t,
     161  		     z0_res = svld1sh_gather_s32offset_u32 (p0, x0, z0),
     162  		     z0_res = svld1sh_gather_offset_u32 (p0, x0, z0))
     163  
     164  /*
     165  ** ld1sh_gather_untied_u32_s32offset:
     166  **	ld1sh	z0\.s, p0/z, \[x0, z1\.s, sxtw\]
     167  **	ret
     168  */
     169  TEST_LOAD_GATHER_SZ (ld1sh_gather_untied_u32_s32offset, svuint32_t, int16_t, svint32_t,
     170  		     z0_res = svld1sh_gather_s32offset_u32 (p0, x0, z1),
     171  		     z0_res = svld1sh_gather_offset_u32 (p0, x0, z1))
     172  
     173  /*
     174  ** ld1sh_gather_x0_u32_u32offset:
     175  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, uxtw\]
     176  **	ret
     177  */
     178  TEST_LOAD_GATHER_SZ (ld1sh_gather_x0_u32_u32offset, svuint32_t, int16_t, svuint32_t,
     179  		     z0_res = svld1sh_gather_u32offset_u32 (p0, x0, z0),
     180  		     z0_res = svld1sh_gather_offset_u32 (p0, x0, z0))
     181  
     182  /*
     183  ** ld1sh_gather_tied1_u32_u32offset:
     184  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, uxtw\]
     185  **	ret
     186  */
     187  TEST_LOAD_GATHER_SZ (ld1sh_gather_tied1_u32_u32offset, svuint32_t, int16_t, svuint32_t,
     188  		     z0_res = svld1sh_gather_u32offset_u32 (p0, x0, z0),
     189  		     z0_res = svld1sh_gather_offset_u32 (p0, x0, z0))
     190  
     191  /*
     192  ** ld1sh_gather_untied_u32_u32offset:
     193  **	ld1sh	z0\.s, p0/z, \[x0, z1\.s, uxtw\]
     194  **	ret
     195  */
     196  TEST_LOAD_GATHER_SZ (ld1sh_gather_untied_u32_u32offset, svuint32_t, int16_t, svuint32_t,
     197  		     z0_res = svld1sh_gather_u32offset_u32 (p0, x0, z1),
     198  		     z0_res = svld1sh_gather_offset_u32 (p0, x0, z1))
     199  
     200  /*
     201  ** ld1sh_gather_x0_u32_s32index:
     202  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, sxtw 1\]
     203  **	ret
     204  */
     205  TEST_LOAD_GATHER_SZ (ld1sh_gather_x0_u32_s32index, svuint32_t, int16_t, svint32_t,
     206  		     z0_res = svld1sh_gather_s32index_u32 (p0, x0, z0),
     207  		     z0_res = svld1sh_gather_index_u32 (p0, x0, z0))
     208  
     209  /*
     210  ** ld1sh_gather_tied1_u32_s32index:
     211  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, sxtw 1\]
     212  **	ret
     213  */
     214  TEST_LOAD_GATHER_SZ (ld1sh_gather_tied1_u32_s32index, svuint32_t, int16_t, svint32_t,
     215  		     z0_res = svld1sh_gather_s32index_u32 (p0, x0, z0),
     216  		     z0_res = svld1sh_gather_index_u32 (p0, x0, z0))
     217  
     218  /*
     219  ** ld1sh_gather_untied_u32_s32index:
     220  **	ld1sh	z0\.s, p0/z, \[x0, z1\.s, sxtw 1\]
     221  **	ret
     222  */
     223  TEST_LOAD_GATHER_SZ (ld1sh_gather_untied_u32_s32index, svuint32_t, int16_t, svint32_t,
     224  		     z0_res = svld1sh_gather_s32index_u32 (p0, x0, z1),
     225  		     z0_res = svld1sh_gather_index_u32 (p0, x0, z1))
     226  
     227  /*
     228  ** ld1sh_gather_x0_u32_u32index:
     229  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, uxtw 1\]
     230  **	ret
     231  */
     232  TEST_LOAD_GATHER_SZ (ld1sh_gather_x0_u32_u32index, svuint32_t, int16_t, svuint32_t,
     233  		     z0_res = svld1sh_gather_u32index_u32 (p0, x0, z0),
     234  		     z0_res = svld1sh_gather_index_u32 (p0, x0, z0))
     235  
     236  /*
     237  ** ld1sh_gather_tied1_u32_u32index:
     238  **	ld1sh	z0\.s, p0/z, \[x0, z0\.s, uxtw 1\]
     239  **	ret
     240  */
     241  TEST_LOAD_GATHER_SZ (ld1sh_gather_tied1_u32_u32index, svuint32_t, int16_t, svuint32_t,
     242  		     z0_res = svld1sh_gather_u32index_u32 (p0, x0, z0),
     243  		     z0_res = svld1sh_gather_index_u32 (p0, x0, z0))
     244  
     245  /*
     246  ** ld1sh_gather_untied_u32_u32index:
     247  **	ld1sh	z0\.s, p0/z, \[x0, z1\.s, uxtw 1\]
     248  **	ret
     249  */
     250  TEST_LOAD_GATHER_SZ (ld1sh_gather_untied_u32_u32index, svuint32_t, int16_t, svuint32_t,
     251  		     z0_res = svld1sh_gather_u32index_u32 (p0, x0, z1),
     252  		     z0_res = svld1sh_gather_index_u32 (p0, x0, z1))