| /* { dg-do compile } */ |
| /* { dg-options "-march=rv64gc_zvksed_zvksh_zvkb_zvkt_zvkg" { target { rv64 } } } */ |
| /* { dg-options "-march=rv32gc_zvksed_zvksh_zvkb_zvkt_zvkg" { target { rv32 } } } */ |
| |
| #ifndef __riscv_zvksg |
| #error "Feature macro for `Zvksg' 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_zvkg |
| #error "Feature macro for `Zvkg' not defined" |
| #endif |
| |
| int |
| foo (int a) |
| { |
| return a; |
| } |