gcc/testsuite/gcc.target/riscv/matrix_add_const.c
raw| 1 | /* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 | /* Explicitly use -march flags to that we don't get V. */ |
| 3 | /* { dg-options "-O2 -fdump-rtl-ext_dce -march=rv64gc -mabi=lp64d" { target { rv64 } } } */ |
| 4 | /* { dg-options "-O2 -fdump-rtl-ext_dce -march=rv32gc" { target { rv32 } } } */ |
| 5 | /* { dg-final { scan-rtl-dump {Successfully transformed} "ext_dce" } } */ |
| 6 | |
| 7 | void |
| 8 | matrix_add_const(int N, short *A, short val) |
| 9 | { |
| 10 | for (int j = 0; j < N; j++) { |
| 11 | A[j] += val; |
| 12 | } |
| 13 | } |