| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mrvv-vector-bits=scalable -march=rv32gcv_zbb -mabi=ilp32d -mrvv-vector-bits=zvl -O3" } */ |
| 3 |
|
| 4 |
#include <stdint-gcc.h> |
| 5 |
|
| 6 |
void |
| 7 |
func (int8_t *__restrict x, int64_t *__restrict y, int n) |
| 8 |
{ |
| 9 |
for (int i = 0, j = 0; i < n; i++, j +=2 ) |
| 10 |
{ |
| 11 |
x[i + 0] += 1; |
| 12 |
y[j + 0] += 1; |
| 13 |
y[j + 1] += 2; |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
/* { dg-final { scan-assembler {vsetvli} { target { no-opts "-O0" no-opts "-O1" no-opts "-Os" no-opts "-Oz" no-opts "-g" no-opts "-funroll-loops" } } } } */ |