Debian Codegraph @

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

raw
1 /* Test the vqdmulhs_laneq_s32 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_vqdmulhs (int32_t arg1, int32x4_t arg2)
12 {
13 return vqdmulhs_laneq_s32 (arg1, arg2, 3);
14 }
15
16 int
17 main (void)
18 {
19 int32_t actual;
20 int32_t expected;
21
22 actual = test_vqdmulhs (0x80000000,
23 vcombine_s32 (vcreate_s32 (0x950dffffc4f40000ULL),
24 vcreate_s32 (0x7fff8000274a8000ULL)));
25 expected = -2147450880;
26
27 if (expected != actual)
28 abort ();
29
30 return 0;
31 }
32
33
34 /* { dg-final { scan-assembler-times "sqdmulh\[ \t\]+\[sS\]\[0-9\]+, ?\[sS\]\[0-9\]+, ?\[vV\]\[0-9\]+\.\[sS\]\\\[3\\\]\n" 1 } } */