Debian Codegraph @

gcc/testsuite/gcc.target/riscv/zvknc-2.c

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