Debian Codegraph @

gcc/testsuite/g++.target/arm/mve/general-c++/nomve_fp_1.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_fp_ok } */
3 /* { dg-require-effective-target arm_v8_1m_mve_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 -mcpu=unset -march=armv8.1-m.main+mve" } */
8 /* { dg-add-options arm_fp } */
9
10 #include <arm_mve.h>
11
12 void
13 f1 (uint8x16_t v)
14 {
15 vreinterpretq_f16 (v); /* { dg-error {ACLE function 'void vreinterpretq_f16\(uint8x16_t\)' 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 }