| 1 |
/* Verify that fcsr instructions emitted. */ |
| 2 |
/* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 3 |
/* { dg-require-effective-target hard_float } */ |
| 4 |
/* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-g" "-Oz" "-Os" "-flto" } } */ |
| 5 |
/* { dg-options "-march=rv64gc_xtheadmempair -mtune=thead-c906 -funwind-tables" { target { rv64 } } } */ |
| 6 |
/* { dg-options "-march=rv32gc_xtheadmempair -mtune=thead-c906 -funwind-tables" { target { rv32 } } } */ |
| 7 |
|
| 8 |
|
| 9 |
extern int foo (void); |
| 10 |
|
| 11 |
void __attribute__ ((interrupt)) |
| 12 |
sub (void) |
| 13 |
{ |
| 14 |
foo (); |
| 15 |
} |
| 16 |
|
| 17 |
/* { dg-final { scan-assembler-times "frcsr\t" 1 } } */ |
| 18 |
/* { dg-final { scan-assembler-times "fscsr\t" 1 } } */ |