1  /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */
       2  
       3  #include "test_sve_acle.h"
       4  
       5  /*
       6  ** ldnt1sh_gather_u64_tied1:
       7  **	ldnt1sh	z0\.d, p0/z, \[z0\.d\]
       8  **	ret
       9  */
      10  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_u64_tied1, svuint64_t, svuint64_t,
      11  		     z0_res = svldnt1sh_gather_u64base_u64 (p0, z0),
      12  		     z0_res = svldnt1sh_gather_u64 (p0, z0))
      13  
      14  /*
      15  ** ldnt1sh_gather_u64_untied:
      16  **	ldnt1sh	z0\.d, p0/z, \[z1\.d\]
      17  **	ret
      18  */
      19  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_u64_untied, svuint64_t, svuint64_t,
      20  		     z0_res = svldnt1sh_gather_u64base_u64 (p0, z1),
      21  		     z0_res = svldnt1sh_gather_u64 (p0, z1))
      22  
      23  /*
      24  ** ldnt1sh_gather_x0_u64_offset:
      25  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, x0\]
      26  **	ret
      27  */
      28  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_x0_u64_offset, svuint64_t, svuint64_t,
      29  		     z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, x0),
      30  		     z0_res = svldnt1sh_gather_offset_u64 (p0, z0, x0))
      31  
      32  /*
      33  ** ldnt1sh_gather_m2_u64_offset:
      34  **	mov	(x[0-9]+), #?-2
      35  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
      36  **	ret
      37  */
      38  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_m2_u64_offset, svuint64_t, svuint64_t,
      39  		     z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, -2),
      40  		     z0_res = svldnt1sh_gather_offset_u64 (p0, z0, -2))
      41  
      42  /*
      43  ** ldnt1sh_gather_0_u64_offset:
      44  **	ldnt1sh	z0\.d, p0/z, \[z0\.d\]
      45  **	ret
      46  */
      47  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_0_u64_offset, svuint64_t, svuint64_t,
      48  		     z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 0),
      49  		     z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 0))
      50  
      51  /*
      52  ** ldnt1sh_gather_5_u64_offset:
      53  **	mov	(x[0-9]+), #?5
      54  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
      55  **	ret
      56  */
      57  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_5_u64_offset, svuint64_t, svuint64_t,
      58  		     z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 5),
      59  		     z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 5))
      60  
      61  /*
      62  ** ldnt1sh_gather_6_u64_offset:
      63  **	mov	(x[0-9]+), #?6
      64  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
      65  **	ret
      66  */
      67  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_6_u64_offset, svuint64_t, svuint64_t,
      68  		     z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 6),
      69  		     z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 6))
      70  
      71  /*
      72  ** ldnt1sh_gather_62_u64_offset:
      73  **	mov	(x[0-9]+), #?62
      74  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
      75  **	ret
      76  */
      77  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_62_u64_offset, svuint64_t, svuint64_t,
      78  		     z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 62),
      79  		     z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 62))
      80  
      81  /*
      82  ** ldnt1sh_gather_64_u64_offset:
      83  **	mov	(x[0-9]+), #?64
      84  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
      85  **	ret
      86  */
      87  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_64_u64_offset, svuint64_t, svuint64_t,
      88  		     z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 64),
      89  		     z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 64))
      90  
      91  /*
      92  ** ldnt1sh_gather_x0_u64_index:
      93  **	lsl	(x[0-9]+), x0, #?1
      94  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
      95  **	ret
      96  */
      97  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_x0_u64_index, svuint64_t, svuint64_t,
      98  		     z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, x0),
      99  		     z0_res = svldnt1sh_gather_index_u64 (p0, z0, x0))
     100  
     101  /*
     102  ** ldnt1sh_gather_m1_u64_index:
     103  **	mov	(x[0-9]+), #?-2
     104  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
     105  **	ret
     106  */
     107  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_m1_u64_index, svuint64_t, svuint64_t,
     108  		     z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, -1),
     109  		     z0_res = svldnt1sh_gather_index_u64 (p0, z0, -1))
     110  
     111  /*
     112  ** ldnt1sh_gather_0_u64_index:
     113  **	ldnt1sh	z0\.d, p0/z, \[z0\.d\]
     114  **	ret
     115  */
     116  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_0_u64_index, svuint64_t, svuint64_t,
     117  		     z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, 0),
     118  		     z0_res = svldnt1sh_gather_index_u64 (p0, z0, 0))
     119  
     120  /*
     121  ** ldnt1sh_gather_5_u64_index:
     122  **	mov	(x[0-9]+), #?10
     123  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
     124  **	ret
     125  */
     126  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_5_u64_index, svuint64_t, svuint64_t,
     127  		     z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, 5),
     128  		     z0_res = svldnt1sh_gather_index_u64 (p0, z0, 5))
     129  
     130  /*
     131  ** ldnt1sh_gather_31_u64_index:
     132  **	mov	(x[0-9]+), #?62
     133  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
     134  **	ret
     135  */
     136  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_31_u64_index, svuint64_t, svuint64_t,
     137  		     z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, 31),
     138  		     z0_res = svldnt1sh_gather_index_u64 (p0, z0, 31))
     139  
     140  /*
     141  ** ldnt1sh_gather_32_u64_index:
     142  **	mov	(x[0-9]+), #?64
     143  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, \1\]
     144  **	ret
     145  */
     146  TEST_LOAD_GATHER_ZS (ldnt1sh_gather_32_u64_index, svuint64_t, svuint64_t,
     147  		     z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, 32),
     148  		     z0_res = svldnt1sh_gather_index_u64 (p0, z0, 32))
     149  
     150  /*
     151  ** ldnt1sh_gather_x0_u64_s64offset:
     152  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, x0\]
     153  **	ret
     154  */
     155  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_x0_u64_s64offset, svuint64_t, int16_t, svint64_t,
     156  		     z0_res = svldnt1sh_gather_s64offset_u64 (p0, x0, z0),
     157  		     z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z0))
     158  
     159  /*
     160  ** ldnt1sh_gather_tied1_u64_s64offset:
     161  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, x0\]
     162  **	ret
     163  */
     164  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_tied1_u64_s64offset, svuint64_t, int16_t, svint64_t,
     165  		     z0_res = svldnt1sh_gather_s64offset_u64 (p0, x0, z0),
     166  		     z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z0))
     167  
     168  /*
     169  ** ldnt1sh_gather_untied_u64_s64offset:
     170  **	ldnt1sh	z0\.d, p0/z, \[z1\.d, x0\]
     171  **	ret
     172  */
     173  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_untied_u64_s64offset, svuint64_t, int16_t, svint64_t,
     174  		     z0_res = svldnt1sh_gather_s64offset_u64 (p0, x0, z1),
     175  		     z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z1))
     176  
     177  /*
     178  ** ldnt1sh_gather_x0_u64_u64offset:
     179  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, x0\]
     180  **	ret
     181  */
     182  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_x0_u64_u64offset, svuint64_t, int16_t, svuint64_t,
     183  		     z0_res = svldnt1sh_gather_u64offset_u64 (p0, x0, z0),
     184  		     z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z0))
     185  
     186  /*
     187  ** ldnt1sh_gather_tied1_u64_u64offset:
     188  **	ldnt1sh	z0\.d, p0/z, \[z0\.d, x0\]
     189  **	ret
     190  */
     191  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_tied1_u64_u64offset, svuint64_t, int16_t, svuint64_t,
     192  		     z0_res = svldnt1sh_gather_u64offset_u64 (p0, x0, z0),
     193  		     z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z0))
     194  
     195  /*
     196  ** ldnt1sh_gather_untied_u64_u64offset:
     197  **	ldnt1sh	z0\.d, p0/z, \[z1\.d, x0\]
     198  **	ret
     199  */
     200  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_untied_u64_u64offset, svuint64_t, int16_t, svuint64_t,
     201  		     z0_res = svldnt1sh_gather_u64offset_u64 (p0, x0, z1),
     202  		     z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z1))
     203  
     204  /*
     205  ** ldnt1sh_gather_x0_u64_s64index:
     206  **	lsl	(z[0-9]+\.d), z0\.d, #1
     207  **	ldnt1sh	z0\.d, p0/z, \[\1, x0\]
     208  **	ret
     209  */
     210  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_x0_u64_s64index, svuint64_t, int16_t, svint64_t,
     211  		     z0_res = svldnt1sh_gather_s64index_u64 (p0, x0, z0),
     212  		     z0_res = svldnt1sh_gather_index_u64 (p0, x0, z0))
     213  
     214  /*
     215  ** ldnt1sh_gather_tied1_u64_s64index:
     216  **	lsl	(z[0-9]+\.d), z0\.d, #1
     217  **	ldnt1sh	z0\.d, p0/z, \[\1, x0\]
     218  **	ret
     219  */
     220  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_tied1_u64_s64index, svuint64_t, int16_t, svint64_t,
     221  		     z0_res = svldnt1sh_gather_s64index_u64 (p0, x0, z0),
     222  		     z0_res = svldnt1sh_gather_index_u64 (p0, x0, z0))
     223  
     224  /*
     225  ** ldnt1sh_gather_untied_u64_s64index:
     226  **	lsl	(z[0-9]+\.d), z1\.d, #1
     227  **	ldnt1sh	z0\.d, p0/z, \[\1, x0\]
     228  **	ret
     229  */
     230  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_untied_u64_s64index, svuint64_t, int16_t, svint64_t,
     231  		     z0_res = svldnt1sh_gather_s64index_u64 (p0, x0, z1),
     232  		     z0_res = svldnt1sh_gather_index_u64 (p0, x0, z1))
     233  
     234  /*
     235  ** ldnt1sh_gather_x0_u64_u64index:
     236  **	lsl	(z[0-9]+\.d), z0\.d, #1
     237  **	ldnt1sh	z0\.d, p0/z, \[\1, x0\]
     238  **	ret
     239  */
     240  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_x0_u64_u64index, svuint64_t, int16_t, svuint64_t,
     241  		     z0_res = svldnt1sh_gather_u64index_u64 (p0, x0, z0),
     242  		     z0_res = svldnt1sh_gather_index_u64 (p0, x0, z0))
     243  
     244  /*
     245  ** ldnt1sh_gather_tied1_u64_u64index:
     246  **	lsl	(z[0-9]+\.d), z0\.d, #1
     247  **	ldnt1sh	z0\.d, p0/z, \[\1, x0\]
     248  **	ret
     249  */
     250  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_tied1_u64_u64index, svuint64_t, int16_t, svuint64_t,
     251  		     z0_res = svldnt1sh_gather_u64index_u64 (p0, x0, z0),
     252  		     z0_res = svldnt1sh_gather_index_u64 (p0, x0, z0))
     253  
     254  /*
     255  ** ldnt1sh_gather_untied_u64_u64index:
     256  **	lsl	(z[0-9]+\.d), z1\.d, #1
     257  **	ldnt1sh	z0\.d, p0/z, \[\1, x0\]
     258  **	ret
     259  */
     260  TEST_LOAD_GATHER_SZ (ldnt1sh_gather_untied_u64_u64index, svuint64_t, int16_t, svuint64_t,
     261  		     z0_res = svldnt1sh_gather_u64index_u64 (p0, x0, z1),
     262  		     z0_res = svldnt1sh_gather_index_u64 (p0, x0, z1))