Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/binop_vx_constraint-59.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv32gcv -mabi=ilp32 -O3" } */
3 #include "riscv_vector.h"
4
5 void f (void * in, void *out, int64_t x, int n)
6 {
7 vint64m1_t v = __riscv_vle64_v_i64m1 (in + 1, 4);
8 vint64m1_t v2 = __riscv_vle64_v_i64m1_tu (v, in + 2, 4);
9 vint64m1_t v3 = __riscv_vor_vx_i64m1 (v2, 0xAAAAAAAA, 4);
10 vint64m1_t v4 = __riscv_vor_vx_i64m1_tu (v3, v2, 0xAAAAAAAA, 4);
11 __riscv_vse64_v_i64m1 (out + 2, v4, 4);
12 }
13
14 /* { dg-final { scan-assembler-times {vlse64\.v\s+v[0-9]+,\s*0\([a-x0-9]+\),\s*zero} 1 } } */
15 /* { dg-final { scan-assembler-times {vor\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 2 } } */
16 /* { dg-final { scan-assembler-not {vmv} } } */