Debian Codegraph @

gcc/testsuite/gcc.target/riscv/zi-ext.c

raw
1 /* { dg-do compile { target { ! riscv_abi_e } } } */
2 /* { dg-options "-march=rv64gc_zic64b_ziccamoa_ziccif_zicclsm_ziccrse" { target { rv64 } } } */
3 /* { dg-options "-march=rv32gc_zic64b_ziccamoa_ziccif_zicclsm_ziccrse" { target { rv32 } } } */
4
5 #ifndef __riscv_zic64b
6 #error "Feature macro for 'zic64b' not defined"
7 #endif
8
9 #ifndef __riscv_ziccamoa
10 #error "Feature macro for 'ziccamoa' not defined"
11 #endif
12
13 #ifndef __riscv_ziccif
14 #error "Feature macro for 'ziccif' not defined"
15 #endif
16
17 #ifndef __riscv_zicclsm
18 #error "Feature macro for 'zicclsm' not defined"
19 #endif
20
21 #ifndef __riscv_ziccrse
22 #error "Feature macro for 'ziccrse' not defined"
23 #endif
24
25 int
26 foo (int a)
27 {
28 return a;
29 }