Debian Codegraph @

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

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