| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target arm_v8_1m_mve_ok } */ |
| 3 |
/* { dg-require-effective-target arm_fp_ok } */ |
| 4 |
/* Do not use dg-add-options arm_v8_1m_mve, because this might expand to "", |
| 5 |
which could imply mve+fp depending on the user settings. We want to make |
| 6 |
sure the '+fp' extension is not enabled. */ |
| 7 |
/* { dg-options "-mfpu=auto -march=armv8.1-m.main+mve" } */ |
| 8 |
/* { dg-add-options arm_fp } */ |
| 9 |
|
| 10 |
#include <arm_mve.h> |
| 11 |
|
| 12 |
void |
| 13 |
foo (uint8x16_t v) |
| 14 |
{ |
| 15 |
vreinterpretq_f16 (v); /* { dg-error {ACLE function '__arm_vreinterpretq_f16_u8' requires ISA extension 'mve.fp'} } */ |
| 16 |
/* { dg-message {note: you can enable mve.fp by using the command-line option '-march', or by using the 'target' attribute or pragma} "" {target *-*-*} .-1 } */ |
| 17 |
} |