gcc/testsuite/gcc.target/riscv/ssp-2.c
raw| 1 | /* { dg-do compile { target { riscv64*-*-* } } } */ |
| 2 | /* { dg-options "-O0 -march=rv64gc_zicfiss -mabi=lp64d -fcf-protection=return" } */ |
| 3 | |
| 4 | void __attribute__ ((interrupt)) |
| 5 | foo (void) |
| 6 | { |
| 7 | } |
| 8 | /* { dg-final { scan-assembler-times "sd\tra" 1 } } */ |
| 9 | /* { dg-final { scan-assembler-times "ld\tra" 1 } } */ |
| 10 | /* { dg-final { scan-assembler-times "sspopchk\tra" 1 } } */ |