Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64 -O3" } */
3 #include "riscv_vector.h"
4
5 vbool1_t test_vreinterpret_v_i8m1_b1 (vint8m1_t src) {
6 return __riscv_vreinterpret_v_i8m1_b1 (src);
7 }
8
9 vbool1_t test_vreinterpret_v_i16m1_b1 (vint16m1_t src) {
10 return __riscv_vreinterpret_v_i16m1_b1 (src);
11 }
12
13 vbool1_t test_vreinterpret_v_i32m1_b1 (vint32m1_t src) {
14 return __riscv_vreinterpret_v_i32m1_b1 (src);
15 }
16
17 vbool1_t test_vreinterpret_v_i64m1_b1 (vint64m1_t src) {
18 return __riscv_vreinterpret_v_i64m1_b1 (src);
19 }
20
21 vbool1_t test_vreinterpret_v_u8m1_b1 (vuint8m1_t src) {
22 return __riscv_vreinterpret_v_u8m1_b1 (src);
23 }
24
25 vbool1_t test_vreinterpret_v_u16m1_b1 (vuint16m1_t src) {
26 return __riscv_vreinterpret_v_u16m1_b1 (src);
27 }
28
29 vbool1_t test_vreinterpret_v_u32m1_b1 (vuint32m1_t src) {
30 return __riscv_vreinterpret_v_u32m1_b1 (src);
31 }
32
33 vbool1_t test_vreinterpret_v_u64m1_b1 (vuint64m1_t src) {
34 return __riscv_vreinterpret_v_u64m1_b1 (src);
35 }
36
37 vbool2_t test_vreinterpret_v_i8m1_b2 (vint8m1_t src) {
38 return __riscv_vreinterpret_v_i8m1_b2 (src);
39 }
40
41 vbool4_t test_vreinterpret_v_i8m1_b4 (vint8m1_t src) {
42 return __riscv_vreinterpret_v_i8m1_b4 (src);
43 }
44
45 vbool8_t test_vreinterpret_v_i8m1_b8 (vint8m1_t src) {
46 return __riscv_vreinterpret_v_i8m1_b8 (src);
47 }
48
49 vbool16_t test_vreinterpret_v_i8m1_b16 (vint8m1_t src) {
50 return __riscv_vreinterpret_v_i8m1_b16 (src);
51 }
52
53 vbool32_t test_vreinterpret_v_i8m1_b32 (vint8m1_t src) {
54 return __riscv_vreinterpret_v_i8m1_b32 (src);
55 }
56
57 vbool64_t test_vreinterpret_v_i8m1_b64 (vint8m1_t src) {
58 return __riscv_vreinterpret_v_i8m1_b64 (src);
59 }
60
61 vbool2_t test_vreinterpret_v_u8m1_b2 (vuint8m1_t src) {
62 return __riscv_vreinterpret_v_u8m1_b2 (src);
63 }
64
65 vbool4_t test_vreinterpret_v_u8m1_b4 (vuint8m1_t src) {
66 return __riscv_vreinterpret_v_u8m1_b4 (src);
67 }
68
69 vbool8_t test_vreinterpret_v_u8m1_b8 (vuint8m1_t src) {
70 return __riscv_vreinterpret_v_u8m1_b8 (src);
71 }
72
73 vbool16_t test_vreinterpret_v_u8m1_b16 (vuint8m1_t src) {
74 return __riscv_vreinterpret_v_u8m1_b16 (src);
75 }
76
77 vbool32_t test_vreinterpret_v_u8m1_b32 (vuint8m1_t src) {
78 return __riscv_vreinterpret_v_u8m1_b32 (src);
79 }
80
81 vbool64_t test_vreinterpret_v_u8m1_b64 (vuint8m1_t src) {
82 return __riscv_vreinterpret_v_u8m1_b64 (src);
83 }
84
85 vint8m1_t test_vreinterpret_v_b1_vint8m1 (vbool1_t src) {
86 return __riscv_vreinterpret_v_b1_i8m1 (src);
87 }
88
89 vint16m1_t test_vreinterpret_v_b1_vint16m1 (vbool1_t src) {
90 return __riscv_vreinterpret_v_b1_i16m1 (src);
91 }
92
93 vint32m1_t test_vreinterpret_v_b1_vint32m1 (vbool1_t src) {
94 return __riscv_vreinterpret_v_b1_i32m1 (src);
95 }
96
97 vint64m1_t test_vreinterpret_v_b1_vint64m1 (vbool1_t src) {
98 return __riscv_vreinterpret_v_b1_i64m1 (src);
99 }
100
101 vuint8m1_t test_vreinterpret_v_b1_vuint8m1 (vbool1_t src) {
102 return __riscv_vreinterpret_v_b1_u8m1 (src);
103 }
104
105 vuint16m1_t test_vreinterpret_v_b1_vuint16m1 (vbool1_t src) {
106 return __riscv_vreinterpret_v_b1_u16m1 (src);
107 }
108
109 vuint32m1_t test_vreinterpret_v_b1_vuint32m1 (vbool1_t src) {
110 return __riscv_vreinterpret_v_b1_u32m1 (src);
111 }
112
113 vuint64m1_t test_vreinterpret_v_b1_vuint64m1 (vbool1_t src) {
114 return __riscv_vreinterpret_v_b1_u64m1 (src);
115 }
116
117 /* { dg-final { scan-assembler-times {vmv1r.v\s+v[0-9]+,\s*v[0-9]+} 28 } } */