gcc/testsuite/gcc.target/riscv/xtheadbb-ext.c
raw| 1 | /* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 | /* { dg-options "-march=rv32gc_xtheadbb" { target { rv32 } } } */ |
| 3 | /* { dg-options "-march=rv64gc_xtheadbb" { target { rv64 } } } */ |
| 4 | /* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ |
| 5 | |
| 6 | struct bar |
| 7 | { |
| 8 | long a:9; |
| 9 | long b:26; |
| 10 | long c:22; |
| 11 | }; |
| 12 | |
| 13 | long |
| 14 | foo (struct bar *s) |
| 15 | { |
| 16 | return s->b; |
| 17 | } |
| 18 | |
| 19 | /* { dg-final { scan-assembler "th.ext\t" } } */ |
| 20 | /* { dg-final { scan-assembler-not {\mandi} } } */ |