/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */

#include "test_sve_acle.h"

/*
** tbl_s32_tied1:
**	tbl	z0\.s, z0\.s, z4\.s
**	ret
*/
TEST_DUAL_Z (tbl_s32_tied1, svint32_t, svuint32_t,
	     z0 = svtbl_s32 (z0, z4),
	     z0 = svtbl (z0, z4))

/*
** tbl_s32_tied2:
**	tbl	z0\.s, z4\.s, z0\.s
**	ret
*/
TEST_DUAL_Z_REV (tbl_s32_tied2, svint32_t, svuint32_t,
		 z0_res = svtbl_s32 (z4, z0),
		 z0_res = svtbl (z4, z0))

/*
** tbl_s32_untied:
**	tbl	z0\.s, z1\.s, z4\.s
**	ret
*/
TEST_DUAL_Z (tbl_s32_untied, svint32_t, svuint32_t,
	     z0 = svtbl_s32 (z1, z4),
	     z0 = svtbl (z1, z4))
