Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / simd / vqrdmulhh_lane_s16.c
blob7dddb7550c48c7002de2c8ec1a2bc5babe0bd031
1 /* Test the vqrdmulhh_lane_s16 AArch64 SIMD intrinsic. */
3 /* { dg-do run } */
4 /* { dg-options "-save-temps -O3" } */
6 #include "arm_neon.h"
7 #include <stdio.h>
9 extern void abort (void);
11 int16_t __attribute__((noipa))
12 test_vqrdmulhh (int16_t arg1, int16x4_t arg2)
14 return vqrdmulhh_lane_s16 (arg1, arg2, 3);
17 int
18 main (void)
20 int16_t actual;
21 int16_t expected;
23 actual = test_vqrdmulhh (-32768, vcreate_s16 (0xd78e000005d78000ULL));
24 expected = 10354;
26 if (expected != actual)
28 fprintf (stderr, "Expected: %xd, got %xd\n", expected, actual);
29 abort ();
32 return 0;
35 /* { dg-final { scan-assembler-times "sqrdmulh\[ \t\]+\[hH\]\[0-9\]+, ?\[hH\]\[0-9\]+, ?\[vV\]\[0-9\]+\.\[hH\]\\\[3\\\]\n" 1 } } */