| 1 |
/* { dg-do assemble } */ |
| 2 |
/* { dg-require-effective-target arm_v8_2a_i8mm_ok } */ |
| 3 |
/* { dg-additional-options "-march=armv8.2-a+i8mm -save-temps" } */ |
| 4 |
|
| 5 |
#include "arm_neon.h" |
| 6 |
|
| 7 |
int32x4_t |
| 8 |
test_vmmlaq_s32 (int32x4_t r, int8x16_t a, int8x16_t b) |
| 9 |
{ |
| 10 |
return vmmlaq_s32 (r, a, b); |
| 11 |
} |
| 12 |
|
| 13 |
uint32x4_t |
| 14 |
test_vmmlaq_u32 (uint32x4_t r, uint8x16_t a, uint8x16_t b) |
| 15 |
{ |
| 16 |
return vmmlaq_u32 (r, a, b); |
| 17 |
} |
| 18 |
|
| 19 |
int32x4_t |
| 20 |
test_vusmmlaq_s32 (int32x4_t r, uint8x16_t a, int8x16_t b) |
| 21 |
{ |
| 22 |
return vusmmlaq_s32 (r, a, b); |
| 23 |
} |
| 24 |
|
| 25 |
/* { dg-final { scan-assembler-times {\tsmmla\tv[0-9]+.4s, v[0-9]+.16b, v[0-9]+.16b} 1 } } */ |
| 26 |
/* { dg-final { scan-assembler-times {\tummla\tv[0-9]+.4s, v[0-9]+.16b, v[0-9]+.16b} 1 } } */ |
| 27 |
/* { dg-final { scan-assembler-times {\tusmmla\tv[0-9]+.4s, v[0-9]+.16b, v[0-9]+.16b} 1 } } */ |