Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/usmmla_s32.c

raw
1 /* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
2 /* { dg-require-effective-target aarch64_asm_i8mm_ok } */
3 /* { dg-additional-options "-march=armv8.2-a+sve+i8mm" } */
4 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
5
6 #include "test_sve_acle.h"
7
8 /*
9 ** usmmla_s32_tied1:
10 ** usmmla z0\.s, z2\.b, z4\.b
11 ** ret
12 */
13 TEST_TRIPLE_Z (usmmla_s32_tied1, svint32_t, svuint8_t, svint8_t,
14 z0 = svusmmla_s32 (z0, z2, z4),
15 z0 = svusmmla (z0, z2, z4))
16
17 /*
18 ** usmmla_s32_tied2:
19 ** mov (z[0-9]+)\.d, z0\.d
20 ** movprfx z0, z2
21 ** usmmla z0\.s, \1\.b, z4\.b
22 ** ret
23 */
24 TEST_TRIPLE_Z_REV2 (usmmla_s32_tied2, svint32_t, svuint8_t, svint8_t,
25 z0_res = svusmmla_s32 (z2, z0, z4),
26 z0_res = svusmmla (z2, z0, z4))
27
28 /*
29 ** usmmla_s32_tied3:
30 ** mov (z[0-9]+)\.d, z0\.d
31 ** movprfx z0, z4
32 ** usmmla z0\.s, z2\.b, \1\.b
33 ** ret
34 */
35 TEST_TRIPLE_Z_REV (usmmla_s32_tied3, svint32_t, svuint8_t, svint8_t,
36 z0_res = svusmmla_s32 (z4, z2, z0),
37 z0_res = svusmmla (z4, z2, z0))
38
39 /*
40 ** usmmla_s32_untied:
41 ** movprfx z0, z1
42 ** usmmla z0\.s, z2\.b, z4\.b
43 ** ret
44 */
45 TEST_TRIPLE_Z (usmmla_s32_untied, svint32_t, svuint8_t, svint8_t,
46 z0 = svusmmla_s32 (z1, z2, z4),
47 z0 = svusmmla (z1, z2, z4))