Debian Codegraph @

gcc/testsuite/gcc.target/riscv/zvksg.c

raw
1 /* { dg-do compile { target { ! riscv_abi_e } } } */
2 /* { dg-options "-march=rv64gc_zvksg" { target { rv64 } } } */
3 /* { dg-options "-march=rv32gc_zvksg" { target { rv32 } } } */
4
5 #ifndef __riscv_zvksg
6 #error "Feature macro for `Zvksg' not defined"
7 #endif
8
9 #ifndef __riscv_zvks
10 #error "Feature macro for `Zvks' not defined"
11 #endif
12
13 #ifndef __riscv_zvksed
14 #error "Feature macro for `Zvksed' not defined"
15 #endif
16
17 #ifndef __riscv_zvksh
18 #error "Feature macro for `Zvksh' 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_zvkg
30 #error "Feature macro for `Zvkg' not defined"
31 #endif
32
33 int
34 foo (int a)
35 {
36 return a;
37 }