Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/cpunative/native_cpu_9.c

raw
1 /* { dg-do compile { target { { aarch64*-*-linux*} && native } } } */
2 /* { dg-set-compiler-env-var GCC_CPUINFO "$srcdir/gcc.target/aarch64/cpunative/info_9" } */
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 here a feature that is a prefix of another is enabled.
13 In this case sve is a prefix to svesm4, but sve2-sm4 should be
14 enabled. */