Debian Codegraph @

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

raw
1 /* Test the vqrdmulhs_lane_s32 AArch64 SIMD intrinsic. */
2
3 /* { dg-do run } */
4 /* { dg-options "-save-temps -O3" } */
5
6 #include "arm_neon.h"
7 #include <stdio.h>
8
9 extern void abort (void);
10
11 int32_t __attribute__((noipa))
12 test_vqrdmulhs (int32_t arg1, int32x2_t arg2)
13 {
14 return vqrdmulhs_lane_s32 (arg1, arg2, 1);
15 }
16
17 int
18 main (void)
19 {
20 int32_t actual;
21 int32_t expected;
22
23 actual = test_vqrdmulhs (-2099281921, vcreate_s32 (0x000080007fff0000ULL));
24 expected = -32033;
25
26 if (expected != actual)
27 {
28 fprintf (stderr, "Expected: %xd, got %xd\n", expected, actual);
29 abort ();
30 }
31
32 return 0;
33 }
34
35 /* { dg-final { scan-assembler-times "sqrdmulh\[ \t\]+\[sS\]\[0-9\]+, ?\[sS\]\[0-9\]+, ?\[vV\]\[0-9\]+\.\[sS\]\\\[1\\\]\n" 1 } } */