| 1 |
/* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 |
/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */ |
| 3 |
/* { dg-options "-march=rv32gc" { target { rv32 } } } */ |
| 4 |
/* { dg-options "-march=rv64gc" { target { rv64 } } } */ |
| 5 |
|
| 6 |
__attribute__((norelax)) |
| 7 |
void foo1() |
| 8 |
{} |
| 9 |
|
| 10 |
void foo2(void) |
| 11 |
{} |
| 12 |
|
| 13 |
int main() |
| 14 |
{ |
| 15 |
foo1(); |
| 16 |
foo2(); |
| 17 |
return 0; |
| 18 |
} |
| 19 |
|
| 20 |
/* { dg-final { scan-assembler-times ".option push" 1 } } */ |
| 21 |
/* { dg-final { scan-assembler-times ".option norelax" 1 } } */ |
| 22 |
/* { dg-final { scan-assembler-times ".option pop" 1 } } */ |