| 1 |
/* { dg-options "-march=armv8-a" } */ |
| 2 |
|
| 3 |
#pragma GCC aarch64 "arm_sve.h" |
| 4 |
|
| 5 |
void |
| 6 |
f (svbool_t *x, svint8_t *y) |
| 7 |
{ |
| 8 |
*x = svptrue_b8 (); /* { dg-error {ACLE function '(svbool_t svptrue_b8\(\)|svptrue_b8)' requires ISA extension 'sve'} } */ |
| 9 |
/* { dg-message {note: you can enable 'sve' using the command-line option '-march', or by using the 'target' attribute or pragma} "" { target *-*-* } .-1 } */ |
| 10 |
*x = svptrue_b8 (); |
| 11 |
*x = svptrue_b8 (); |
| 12 |
*x = svptrue_b8 (); |
| 13 |
*x = svptrue_b8 (); |
| 14 |
*x = svptrue_b8 (); |
| 15 |
*x = svptrue_b8 (); |
| 16 |
*y = svadd_m (*x, *y, 1); |
| 17 |
} |