| /* { dg-do compile } */ |
| /* { dg-options "-march=rv64gc_zvkn" { target { rv64 } } } */ |
| /* { dg-options "-march=rv32gc_zvkn" { target { rv32 } } } */ |
| |
| #ifndef __riscv_zvkn |
| #error "Feature macro for `Zvkn' not defined" |
| #endif |
| |
| #ifndef __riscv_zvkned |
| #error "Feature macro for `Zvkned' not defined" |
| #endif |
| |
| #ifndef __riscv_zvknhb |
| #error "Feature macro for `Zvknhb' 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 |
| |
| int |
| foo (int a) |
| { |
| return a; |
| } |