1 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
2 
3 #include "test_sve_acle.h"
4 
5 /*
6 ** qxtnt_s16_tied1:
7 **	sqxtnt	z0\.b, z4\.h
8 **	ret
9 */
10 TEST_DUAL_Z (qxtnt_s16_tied1, svint8_t, svint16_t,
11 	     z0 = svqxtnt_s16 (z0, z4),
12 	     z0 = svqxtnt (z0, z4))
13 
14 /* Bad RA choice: no preferred output sequence.  */
15 TEST_DUAL_Z_REV (qxtnt_s16_tied2, svint8_t, svint16_t,
16 		 z0_res = svqxtnt_s16 (z4, z0),
17 		 z0_res = svqxtnt (z4, z0))
18 
19 /*
20 ** qxtnt_s16_untied:
21 ** (
22 **	mov	z0\.d, z1\.d
23 **	sqxtnt	z0\.b, z4\.h
24 ** |
25 **	sqxtnt	z1\.b, z4\.h
26 **	mov	z0\.d, z1\.d
27 ** )
28 **	ret
29 */
30 TEST_DUAL_Z (qxtnt_s16_untied, svint8_t, svint16_t,
31 	     z0 = svqxtnt_s16 (z1, z4),
32 	     z0 = svqxtnt (z1, z4))
33