| 1 |
/* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 |
/* { dg-options "-march=rv32gc_zba" { target { rv32 } } } */ |
| 3 |
/* { dg-options "-march=rv64gc_zba" { target { rv64 } } } */ |
| 4 |
|
| 5 |
__attribute__((target("arch=+zba,+zbb"))) |
| 6 |
void foo1 (void) |
| 7 |
{ |
| 8 |
} |
| 9 |
|
| 10 |
__attribute__((target("arch=+zbb,+zbb"))) |
| 11 |
void foo2 (void) |
| 12 |
{ |
| 13 |
} |
| 14 |
|
| 15 |
__attribute__((target("arch=+zba"))) |
| 16 |
__attribute__((target("arch=+zbb"))) |
| 17 |
void foo (void) |
| 18 |
{ |
| 19 |
} |
| 20 |
|
| 21 |
__attribute__((target("arch=+zbb"))) |
| 22 |
__attribute__((target("arch=+zbb"))) |
| 23 |
void bar (void) |
| 24 |
{ |
| 25 |
} |
| 26 |
|
| 27 |
/* { dg-final { scan-assembler-times ".option arch, rv32i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0_zaamo1p0_zalrsc1p0_zca1p0_zcd1p0_zcf1p0_zba1p0_zbb1p0" 4 { target { rv32 } } } } */ |
| 28 |
/* { dg-final { scan-assembler-times ".option arch, rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zmmul1p0_zaamo1p0_zalrsc1p0_zca1p0_zcd1p0_zba1p0_zbb1p0" 4 { target { rv64 } } } } */ |