| 1 |
/* { dg-do compile { target { { aarch64*-*-linux*} && native } } } */ |
| 2 |
/* { dg-set-compiler-env-var GCC_CPUINFO "$srcdir/gcc.target/aarch64/cpunative/info_15" } */ |
| 3 |
/* { dg-additional-options "-mcpu=native" } */ |
| 4 |
|
| 5 |
int main() |
| 6 |
{ |
| 7 |
return 0; |
| 8 |
} |
| 9 |
|
| 10 |
/* { dg-final { scan-assembler {\.arch armv8-a\+sve2-sm4\n} } } */ |
| 11 |
|
| 12 |
/* Test one where the bounary of buffer size would cut off and leave |
| 13 |
a valid feature in the first full buffer. e.g. this will cut off at |
| 14 |
sve leaving 2-sm4 to yet be read. Check that this doesn't enable |
| 15 |
+sve by mistake. */ |