| 1 |
/* Test the vqdmlals_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 |
int64_t __attribute__((noipa)) |
| 11 |
test_vqdmlals (int64_t arg1, int32_t arg2, int32x4_t arg3) |
| 12 |
{ |
| 13 |
return vqdmlals_laneq_s32 (arg1, arg2, arg3, 3); |
| 14 |
} |
| 15 |
|
| 16 |
int |
| 17 |
main (void) |
| 18 |
{ |
| 19 |
int64_t actual; |
| 20 |
int64_t expected; |
| 21 |
|
| 22 |
actual = test_vqdmlals (-9223182289494545592LL, 32768, |
| 23 |
vcombine_s32 (vcreate_s32 (0xffff7fff8000ffffULL), |
| 24 |
vcreate_s32 (0x80000000ffff0000ULL))); |
| 25 |
expected = -9223323026982900920LL; |
| 26 |
|
| 27 |
if (expected != actual) |
| 28 |
abort (); |
| 29 |
|
| 30 |
return 0; |
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
/* { dg-final { scan-assembler-times "sqdmlal\[ \t\]+\[dD\]\[0-9\]+, ?\[sS\]\[0-9\]+, ?\[vV\]\[0-9\]+\.\[sS\]\\\[3\\\]\n" 1 } } */ |