Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/zvbb_vandn_vx_constraint.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv32gc_zvbb_zve64x -mabi=ilp32 -O3" } */
3 #include "riscv_vector.h"
4
5 vuint64m1_t test_vandn_vx_u64m1(vuint64m1_t vs2, uint64_t rs1, size_t vl) {
6 return __riscv_vandn_vx_u64m1(vs2, rs1, vl);
7 }
8
9 vuint64m1_t test_vandn_vx_u64m1_extend(vuint64m1_t vs2, size_t vl) {
10 uint32_t rs1 = 0x12345678;
11 return __riscv_vandn_vx_u64m1(vs2, rs1, vl);
12 }
13
14 /* { dg-final { scan-assembler-times {vandn\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]} 1 } } */
15 /* { dg-final { scan-assembler-times {vandn\.vx\s+v[0-9]+,\s*v[0-9]+,\s*a[0-9]} 1 } } */