gcc/testsuite/gcc.target/aarch64/target_attr_15.c
raw| 1 | /* { dg-do assemble } */ |
| 2 | /* { dg-options "-mcpu=generic+crypto -save-temps" } */ |
| 3 | |
| 4 | /* Check that "+nothing" clears the ISA flags. */ |
| 5 | |
| 6 | __attribute__ ((target ("+nothing"))) |
| 7 | int |
| 8 | foo (int a) |
| 9 | { |
| 10 | return a + 1; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler-times "\\.arch armv8-a\\+nofp\n" 1 } } */ |