Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve2/acle/asm/tbxq_s8.c

raw
1 /* { dg-do assemble { target aarch64_asm_sve2p1_ok } } */
2 /* { dg-do compile { target { ! aarch64_asm_sve2p1_ok } } } */
3 /* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
4 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
5
6 #include "test_sve_acle.h"
7
8 #pragma GCC target "+sve2p1"
9
10 /*
11 ** tbx_s8_tied1:
12 ** tbx z0\.b, z1\.b, z4\.b
13 ** ret
14 */
15 TEST_DUAL_Z (tbx_s8_tied1, svint8_t, svuint8_t,
16 z0 = svtbx_s8 (z0, z1, z4),
17 z0 = svtbx (z0, z1, z4))
18
19 /* Bad RA choice: no preferred output sequence. */
20 TEST_DUAL_Z (tbx_s8_tied2, svint8_t, svuint8_t,
21 z0 = svtbx_s8 (z1, z0, z4),
22 z0 = svtbx (z1, z0, z4))
23
24 /* Bad RA choice: no preferred output sequence. */
25 TEST_DUAL_Z_REV (tbx_s8_tied3, svint8_t, svuint8_t,
26 z0_res = svtbx_s8 (z4, z5, z0),
27 z0_res = svtbx (z4, z5, z0))
28
29 /*
30 ** tbx_s8_untied:
31 ** (
32 ** mov z0\.d, z1\.d
33 ** tbx z0\.b, z2\.b, z4\.b
34 ** |
35 ** tbx z1\.b, z2\.b, z4\.b
36 ** mov z0\.d, z1\.d
37 ** )
38 ** ret
39 */
40 TEST_DUAL_Z (tbx_s8_untied, svint8_t, svuint8_t,
41 z0 = svtbx_s8 (z1, z2, z4),
42 z0 = svtbx (z1, z2, z4))