gcc/testsuite/gcc.target/riscv/reg_subreg_costs.c
raw| 1 | /* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 | /* { dg-require-effective-target rv64 } */ |
| 3 | /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-Os" "-Oz" } } */ |
| 4 | /* { dg-options "-march=rv64gc_zba" } */ |
| 5 | |
| 6 | #include <stdint-gcc.h> |
| 7 | void foo(uint32_t a, uint64_t *b_ptr, uint64_t b, uint64_t *c_ptr, uint64_t c) |
| 8 | { |
| 9 | uint64_t x = a; |
| 10 | *b_ptr = b + x; |
| 11 | *c_ptr = c + x; |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler-not "\\szext.w\\s" } } */ |
| 15 |