Debian Codegraph @

gcc/testsuite/gcc.target/riscv/xtheadsync.c

raw
1 /* { dg-do compile { target { ! riscv_abi_e } } } */
2 /* { dg-options "-march=rv32gc_xtheadsync" { target { rv32 } } } */
3 /* { dg-options "-march=rv64gc_xtheadsync" { target { rv64 } } } */
4
5 #ifndef __riscv_xtheadsync
6 #error "Feature macro not defined"
7 #endif
8
9 int
10 foo (int a)
11 {
12 return a;
13 }
14