[AArch64][12/14] Target attributes and target pragmas tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_15.c
blob02091c6c542b98b61156409b437d142169348138
1 /* { dg-do assemble } */
2 /* { dg-options "-march=armv8-a+crypto -save-temps" } */
4 /* Check that "+nothing" clears the ISA flags. */
6 __attribute__ ((target ("+nothing")))
7 int
8 foo (int a)
10 return a + 1;
13 /* { dg-final { scan-assembler-not "\\+fp" } } */
14 /* { dg-final { scan-assembler-not "\\+crypto" } } */
15 /* { dg-final { scan-assembler-not "\\+simd" } } */