Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/and-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv_zvfh_zvl4096b -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2 -mrvv-max-lmul=m8" } */
3
4 #include "def.h"
5
6 DEF_OP_VV (and, 1, int8_t, &)
7 DEF_OP_VV (and, 2, int8_t, &)
8 DEF_OP_VV (and, 4, int8_t, &)
9 DEF_OP_VV (and, 8, int8_t, &)
10 DEF_OP_VV (and, 16, int8_t, &)
11 DEF_OP_VV (and, 32, int8_t, &)
12 DEF_OP_VV (and, 64, int8_t, &)
13 DEF_OP_VV (and, 128, int8_t, &)
14 DEF_OP_VV (and, 256, int8_t, &)
15 DEF_OP_VV (and, 512, int8_t, &)
16 DEF_OP_VV (and, 1024, int8_t, &)
17 DEF_OP_VV (and, 2048, int8_t, &)
18 DEF_OP_VV (and, 4096, int8_t, &)
19
20 DEF_OP_VV (and, 1, int16_t, &)
21 DEF_OP_VV (and, 2, int16_t, &)
22 DEF_OP_VV (and, 4, int16_t, &)
23 DEF_OP_VV (and, 8, int16_t, &)
24 DEF_OP_VV (and, 16, int16_t, &)
25 DEF_OP_VV (and, 32, int16_t, &)
26 DEF_OP_VV (and, 64, int16_t, &)
27 DEF_OP_VV (and, 128, int16_t, &)
28 DEF_OP_VV (and, 256, int16_t, &)
29 DEF_OP_VV (and, 512, int16_t, &)
30 DEF_OP_VV (and, 1024, int16_t, &)
31 DEF_OP_VV (and, 2048, int16_t, &)
32
33 DEF_OP_VV (and, 1, int32_t, &)
34 DEF_OP_VV (and, 2, int32_t, &)
35 DEF_OP_VV (and, 4, int32_t, &)
36 DEF_OP_VV (and, 8, int32_t, &)
37 DEF_OP_VV (and, 16, int32_t, &)
38 DEF_OP_VV (and, 32, int32_t, &)
39 DEF_OP_VV (and, 64, int32_t, &)
40 DEF_OP_VV (and, 128, int32_t, &)
41 DEF_OP_VV (and, 256, int32_t, &)
42 DEF_OP_VV (and, 512, int32_t, &)
43 DEF_OP_VV (and, 1024, int32_t, &)
44
45 DEF_OP_VV (and, 1, int64_t, &)
46 DEF_OP_VV (and, 2, int64_t, &)
47 DEF_OP_VV (and, 4, int64_t, &)
48 DEF_OP_VV (and, 8, int64_t, &)
49 DEF_OP_VV (and, 16, int64_t, &)
50 DEF_OP_VV (and, 32, int64_t, &)
51 DEF_OP_VV (and, 64, int64_t, &)
52 DEF_OP_VV (and, 128, int64_t, &)
53 DEF_OP_VV (and, 256, int64_t, &)
54 DEF_OP_VV (and, 512, int64_t, &)
55
56 /* { dg-final { scan-assembler-times {vand\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 42 } } */
57 /* { dg-final { scan-assembler-not {csrr} } } */