Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/mask-2.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 -fdump-tree-optimized" } */
3
4 #include "def.h"
5
6 DEF_MASK_LOGIC (and, 1, int8_t, |)
7 DEF_MASK_LOGIC (and, 2, int8_t, |)
8 DEF_MASK_LOGIC (and, 4, int8_t, |)
9 DEF_MASK_LOGIC (and, 8, int8_t, |)
10 DEF_MASK_LOGIC (and, 16, int8_t, |)
11 DEF_MASK_LOGIC (and, 32, int8_t, |)
12 DEF_MASK_LOGIC (and, 64, int8_t, |)
13 DEF_MASK_LOGIC (and, 128, int8_t, |)
14 DEF_MASK_LOGIC (and, 256, int8_t, |)
15 DEF_MASK_LOGIC (and, 512, int8_t, |)
16 DEF_MASK_LOGIC (and, 1024, int8_t, |)
17 DEF_MASK_LOGIC (and, 2048, int8_t, |)
18 DEF_MASK_LOGIC (and, 4096, int8_t, |)
19
20 DEF_MASK_LOGIC (and, 1, int16_t, |)
21 DEF_MASK_LOGIC (and, 2, int16_t, |)
22 DEF_MASK_LOGIC (and, 4, int16_t, |)
23 DEF_MASK_LOGIC (and, 8, int16_t, |)
24 DEF_MASK_LOGIC (and, 16, int16_t, |)
25 DEF_MASK_LOGIC (and, 32, int16_t, |)
26 DEF_MASK_LOGIC (and, 64, int16_t, |)
27 DEF_MASK_LOGIC (and, 128, int16_t, |)
28 DEF_MASK_LOGIC (and, 256, int16_t, |)
29 DEF_MASK_LOGIC (and, 512, int16_t, |)
30 DEF_MASK_LOGIC (and, 1024, int16_t, |)
31 DEF_MASK_LOGIC (and, 2048, int16_t, |)
32
33 DEF_MASK_LOGIC (and, 1, int32_t, |)
34 DEF_MASK_LOGIC (and, 2, int32_t, |)
35 DEF_MASK_LOGIC (and, 4, int32_t, |)
36 DEF_MASK_LOGIC (and, 8, int32_t, |)
37 DEF_MASK_LOGIC (and, 16, int32_t, |)
38 DEF_MASK_LOGIC (and, 32, int32_t, |)
39 DEF_MASK_LOGIC (and, 64, int32_t, |)
40 DEF_MASK_LOGIC (and, 128, int32_t, |)
41 DEF_MASK_LOGIC (and, 256, int32_t, |)
42 DEF_MASK_LOGIC (and, 512, int32_t, |)
43 DEF_MASK_LOGIC (and, 1024, int32_t, |)
44
45 DEF_MASK_LOGIC (and, 1, int64_t, |)
46 DEF_MASK_LOGIC (and, 2, int64_t, |)
47 DEF_MASK_LOGIC (and, 4, int64_t, |)
48 DEF_MASK_LOGIC (and, 8, int64_t, |)
49 DEF_MASK_LOGIC (and, 16, int64_t, |)
50 DEF_MASK_LOGIC (and, 32, int64_t, |)
51 DEF_MASK_LOGIC (and, 64, int64_t, |)
52 DEF_MASK_LOGIC (and, 128, int64_t, |)
53 DEF_MASK_LOGIC (and, 256, int64_t, |)
54 DEF_MASK_LOGIC (and, 512, int64_t, |)
55
56 /* { dg-final { scan-assembler-times {vmor\.mm} 42 } } */
57 /* { dg-final { scan-assembler-not {csrr} } } */
58 /* { dg-final { scan-tree-dump-not "1,1" "optimized" } } */
59 /* { dg-final { scan-tree-dump-not "2,2" "optimized" } } */
60 /* { dg-final { scan-tree-dump-not "4,4" "optimized" } } */
61 /* { dg-final { scan-tree-dump-not "16,16" "optimized" } } */
62 /* { dg-final { scan-tree-dump-not "32,32" "optimized" } } */
63 /* { dg-final { scan-tree-dump-not "64,64" "optimized" } } */
64 /* { dg-final { scan-tree-dump-not "128,128" "optimized" } } */
65 /* { dg-final { scan-tree-dump-not "256,256" "optimized" } } */
66 /* { dg-final { scan-tree-dump-not "512,512" "optimized" } } */
67 /* { dg-final { scan-tree-dump-not "1024,1024" "optimized" } } */
68 /* { dg-final { scan-tree-dump-not "2048,2048" "optimized" } } */
69 /* { dg-final { scan-tree-dump-not "4096,4096" "optimized" } } */