1 /* { dg-options "-O2 -march=armv8.2-a+sve" } */
2 /* { dg-prune-output "compilation terminated" } */
3
4 #include <arm_sve.h>
5
6 #pragma GCC push_options
7 #pragma GCC target "general-regs-only"
8
9 svint8x2_t
10 foo (svint8_t x0, svint8_t x1) /* { dg-error {'foo' requires the SVE ISA extension} } */
11 {
12 return svcreate2 (x0, x1); /* { dg-error {ACLE function 'svcreate2_s8' is incompatible with the use of '-mgeneral-regs-only'} } */
13 }
14
15 #pragma GCC pop_options