Debian Codegraph @

gcc/testsuite/gcc.target/riscv/zvkn-1.c

raw
1 /* { dg-do compile { target { ! riscv_abi_e } } } */
2 /* { dg-options "-march=rv64gc_zvkned_zvknhb_zvkb_zvkt" { target { rv64 } } } */
3 /* { dg-options "-march=rv32gc_zvkned_zvknhb_zvkb_zvkt" { target { rv32 } } } */
4
5 #ifndef __riscv_zvkn
6 #error "Feature macro for `Zvkn' not defined"
7 #endif
8
9 #ifndef __riscv_zvkned
10 #error "Feature macro for `Zvkned' not defined"
11 #endif
12
13 #ifndef __riscv_zvknhb
14 #error "Feature macro for `Zvknhb' not defined"
15 #endif
16
17 #ifndef __riscv_zvkb
18 #error "Feature macro for `Zvkb' not defined"
19 #endif
20
21 #ifndef __riscv_zvkt
22 #error "Feature macro for `Zvkt' not defined"
23 #endif
24
25 int
26 foo (int a)
27 {
28 return a;
29 }