| /* { dg-do compile } */ |
| /* { dg-options "-march=rv64gc_zvks_zvbc" { target { rv64 } } } */ |
| /* { dg-options "-march=rv32gc_zvks_zvbc" { target { rv32 } } } */ |
| |
| #ifndef __riscv_zvksc |
| #error "Feature macro for `Zvksc' not defined" |
| #endif |
| |
| #ifndef __riscv_zvks |
| #error "Feature macro for `Zvks' not defined" |
| #endif |
| |
| #ifndef __riscv_zvksed |
| #error "Feature macro for `Zvksed' not defined" |
| #endif |
| |
| #ifndef __riscv_zvksh |
| #error "Feature macro for `Zvksh' not defined" |
| #endif |
| |
| #ifndef __riscv_zvkb |
| #error "Feature macro for `Zvkb' not defined" |
| #endif |
| |
| #ifndef __riscv_zvkt |
| #error "Feature macro for `Zvkt' not defined" |
| #endif |
| |
| #ifndef __riscv_zvbc |
| #error "Feature macro for `Zvbc' not defined" |
| #endif |
| |
| int |
| foo (int a) |
| { |
| return a; |
| } |