Debian Codegraph @

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

raw
1 /* { dg-do compile { target { ! riscv_abi_e } } } */
2 /* { dg-options "-march=rv64gc_za64rs_za128rs" { target { rv64 } } } */
3 /* { dg-options "-march=rv32gc_za64rs_za128rs" { target { rv32 } } } */
4
5 #ifndef __riscv_za64rs
6 #error "Feature macro for 'za64rs' not defined"
7 #endif
8
9 #ifndef __riscv_za128rs
10 #error "Feature macro for 'za128rs' not defined"
11 #endif
12
13 int
14 foo (int a)
15 {
16 return a;
17 }