Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/simd/vqdmlalh_laneq_s16_1.c

raw
1 /* Test the vqdmlalh_laneq_s16 AArch64 SIMD intrinsic. */
2
3 /* { dg-do run } */
4 /* { dg-options "-save-temps -O3" } */
5
6 #include "arm_neon.h"
7
8 extern void abort (void);
9
10 int32_t __attribute__((noipa))
11 test_vqdmlalh (int32_t arg1, int16_t arg2, int16x8_t arg3)
12 {
13 return vqdmlalh_laneq_s16 (arg1, arg2, arg3, 7);
14 }
15
16 int
17 main (void)
18 {
19 int32_t actual;
20 int32_t expected;
21
22 actual = test_vqdmlalh (0x80000000, -24497,
23 vcombine_s16 (vcreate_s16 (0x008a80007fff7fffULL),
24 vcreate_s16 (0xfffffa797fff8000ULL)));
25 expected = -2147434654;
26
27 if (expected != actual)
28 abort ();
29
30 return 0;
31 }
32
33
34 /* { dg-final { scan-assembler-times "sqdmlal\[ \t\]+\[sS\]\[0-9\]+, ?\[hH\]\[0-9\]+, ?\[vV\]\[0-9\]+\.\[hH\]\\\[7\\\]\n" 1 } } */