gcc/testsuite/gcc.target/riscv/pr115921.c
raw| 1 | /* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 | /* { dg-options "-O2 -march=rv64gc_zba" { target { rv64 } } } */ |
| 3 | /* { dg-options "-O2 -march=rv32gc_zba" { target { rv32 } } } */ |
| 4 | |
| 5 | typedef unsigned long target_wide_uint_t; |
| 6 | |
| 7 | target_wide_uint_t test_ashift_and(target_wide_uint_t x) { |
| 8 | return (x & 0x3f) << 12; |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-assembler-times "\\sandi" 1 } } */ |
| 12 | /* { dg-final { scan-assembler-times "\\sslli" 1 } } */ |
| 13 |