gcc/testsuite/gcc.target/riscv/xtheadint.c
raw| 1 | /* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 | /* { dg-options "-march=rv32gc_xtheadint" { target { rv32 } } } */ |
| 3 | /* { dg-options "-march=rv64gc_xtheadint" { target { rv64 } } } */ |
| 4 | |
| 5 | #ifndef __riscv_xtheadint |
| 6 | #error "Feature macro not defined" |
| 7 | #endif |
| 8 | |
| 9 | int |
| 10 | foo (int a) |
| 11 | { |
| 12 | return a; |
| 13 | } |
| 14 |