Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/cmp-4.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_OP_VV (ge, 1, int8_t, >=)
7 DEF_OP_VV (ge, 2, int8_t, >=)
8 DEF_OP_VV (ge, 4, int8_t, >=)
9 DEF_OP_VV (ge, 8, int8_t, >=)
10 DEF_OP_VV (ge, 16, int8_t, >=)
11 DEF_OP_VV (ge, 32, int8_t, >=)
12 DEF_OP_VV (ge, 64, int8_t, >=)
13 DEF_OP_VV (ge, 128, int8_t, >=)
14 DEF_OP_VV (ge, 256, int8_t, >=)
15 DEF_OP_VV (ge, 512, int8_t, >=)
16 DEF_OP_VV (ge, 1024, int8_t, >=)
17 DEF_OP_VV (ge, 2048, int8_t, >=)
18 DEF_OP_VV (ge, 4096, int8_t, >=)
19
20 DEF_OP_VV (ge, 1, int16_t, >=)
21 DEF_OP_VV (ge, 2, int16_t, >=)
22 DEF_OP_VV (ge, 4, int16_t, >=)
23 DEF_OP_VV (ge, 8, int16_t, >=)
24 DEF_OP_VV (ge, 16, int16_t, >=)
25 DEF_OP_VV (ge, 32, int16_t, >=)
26 DEF_OP_VV (ge, 64, int16_t, >=)
27 DEF_OP_VV (ge, 128, int16_t, >=)
28 DEF_OP_VV (ge, 256, int16_t, >=)
29 DEF_OP_VV (ge, 512, int16_t, >=)
30 DEF_OP_VV (ge, 1024, int16_t, >=)
31 DEF_OP_VV (ge, 2048, int16_t, >=)
32
33 DEF_OP_VV (ge, 1, int32_t, >=)
34 DEF_OP_VV (ge, 2, int32_t, >=)
35 DEF_OP_VV (ge, 4, int32_t, >=)
36 DEF_OP_VV (ge, 8, int32_t, >=)
37 DEF_OP_VV (ge, 16, int32_t, >=)
38 DEF_OP_VV (ge, 32, int32_t, >=)
39 DEF_OP_VV (ge, 64, int32_t, >=)
40 DEF_OP_VV (ge, 128, int32_t, >=)
41 DEF_OP_VV (ge, 256, int32_t, >=)
42 DEF_OP_VV (ge, 512, int32_t, >=)
43 DEF_OP_VV (ge, 1024, int32_t, >=)
44
45 DEF_OP_VV (ge, 1, int64_t, >=)
46 DEF_OP_VV (ge, 2, int64_t, >=)
47 DEF_OP_VV (ge, 4, int64_t, >=)
48 DEF_OP_VV (ge, 8, int64_t, >=)
49 DEF_OP_VV (ge, 16, int64_t, >=)
50 DEF_OP_VV (ge, 32, int64_t, >=)
51 DEF_OP_VV (ge, 64, int64_t, >=)
52 DEF_OP_VV (ge, 128, int64_t, >=)
53 DEF_OP_VV (ge, 256, int64_t, >=)
54 DEF_OP_VV (ge, 512, int64_t, >=)
55
56 DEF_OP_VV (ge, 1, _Float16, >=)
57 DEF_OP_VV (ge, 2, _Float16, >=)
58 DEF_OP_VV (ge, 4, _Float16, >=)
59 DEF_OP_VV (ge, 8, _Float16, >=)
60 DEF_OP_VV (ge, 16, _Float16, >=)
61 DEF_OP_VV (ge, 32, _Float16, >=)
62 DEF_OP_VV (ge, 64, _Float16, >=)
63 DEF_OP_VV (ge, 128, _Float16, >=)
64 DEF_OP_VV (ge, 256, _Float16, >=)
65 DEF_OP_VV (ge, 512, _Float16, >=)
66 DEF_OP_VV (ge, 1024, _Float16, >=)
67 DEF_OP_VV (ge, 2048, _Float16, >=)
68
69 DEF_OP_VV (ge, 1, float, >=)
70 DEF_OP_VV (ge, 2, float, >=)
71 DEF_OP_VV (ge, 4, float, >=)
72 DEF_OP_VV (ge, 8, float, >=)
73 DEF_OP_VV (ge, 16, float, >=)
74 DEF_OP_VV (ge, 32, float, >=)
75 DEF_OP_VV (ge, 64, float, >=)
76 DEF_OP_VV (ge, 128, float, >=)
77 DEF_OP_VV (ge, 256, float, >=)
78 DEF_OP_VV (ge, 512, float, >=)
79 DEF_OP_VV (ge, 1024, float, >=)
80
81 DEF_OP_VV (ge, 1, double, >=)
82 DEF_OP_VV (ge, 2, double, >=)
83 DEF_OP_VV (ge, 4, double, >=)
84 DEF_OP_VV (ge, 8, double, >=)
85 DEF_OP_VV (ge, 16, double, >=)
86 DEF_OP_VV (ge, 32, double, >=)
87 DEF_OP_VV (ge, 64, double, >=)
88 DEF_OP_VV (ge, 128, double, >=)
89 DEF_OP_VV (ge, 256, double, >=)
90 DEF_OP_VV (ge, 512, double, >=)
91
92 /* { dg-final { scan-assembler-times {vmsge\.vv} 40 } } */
93 /* { dg-final { scan-assembler-times {vmfge\.vv} 27 } } */
94 /* { dg-final { scan-assembler-not {csrr} } } */
95 /* { dg-final { scan-tree-dump-not "1,1" "optimized" } } */
96 /* { dg-final { scan-tree-dump-not "2,2" "optimized" } } */
97 /* { dg-final { scan-tree-dump-not "4,4" "optimized" } } */
98 /* { dg-final { scan-tree-dump-not "16,16" "optimized" } } */
99 /* { dg-final { scan-tree-dump-not "32,32" "optimized" } } */
100 /* { dg-final { scan-tree-dump-not "64,64" "optimized" } } */
101 /* { dg-final { scan-tree-dump-not "128,128" "optimized" } } */
102 /* { dg-final { scan-tree-dump-not "256,256" "optimized" } } */
103 /* { dg-final { scan-tree-dump-not "512,512" "optimized" } } */
104 /* { dg-final { scan-tree-dump-not "1024,1024" "optimized" } } */
105 /* { dg-final { scan-tree-dump-not "2048,2048" "optimized" } } */
106 /* { dg-final { scan-tree-dump-not "4096,4096" "optimized" } } */