|
| 1 | +/* { dg-do compile } */ |
| 2 | +/* { dg-options "-march=rv64gcv_xsfvcp -mabi=lp64d -O3" } */ |
| 3 | +/* { dg-final { check-function-bodies "**" "" } } */ |
| 4 | + |
| 5 | +#include "riscv_vector.h" |
| 6 | + |
| 7 | +typedef _Float16 float16_t; |
| 8 | +typedef float float32_t; |
| 9 | +typedef double float64_t; |
| 10 | + |
| 11 | +/* |
| 12 | +** test_sf_vc_fv_se_u16mf4: |
| 13 | +** ... |
| 14 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 15 | +** ... |
| 16 | +*/ |
| 17 | + |
| 18 | +void test_sf_vc_fv_se_u16mf4(const int bit_field26, const int bit_field11_7, vuint16mf4_t vs2, float16_t fs1, size_t vl) |
| 19 | +{ |
| 20 | + __riscv_sf_vc_fv_se_u16mf4(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 21 | +} |
| 22 | + |
| 23 | +/* |
| 24 | +** test_sf_vc_fv_se_u16mf2: |
| 25 | +** ... |
| 26 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 27 | +** ... |
| 28 | +*/ |
| 29 | + |
| 30 | +void test_sf_vc_fv_se_u16mf2(const int bit_field26, const int bit_field11_7, vuint16mf2_t vs2, float16_t fs1, size_t vl) |
| 31 | +{ |
| 32 | + __riscv_sf_vc_fv_se_u16mf2(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 33 | +} |
| 34 | + |
| 35 | +/* |
| 36 | +** test_sf_vc_fv_se_u16m1: |
| 37 | +** ... |
| 38 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 39 | +** ... |
| 40 | +*/ |
| 41 | + |
| 42 | +void test_sf_vc_fv_se_u16m1(const int bit_field26, const int bit_field11_7, vuint16m1_t vs2, float16_t fs1, size_t vl) |
| 43 | +{ |
| 44 | + __riscv_sf_vc_fv_se_u16m1(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 45 | +} |
| 46 | + |
| 47 | +/* |
| 48 | +** test_sf_vc_fv_se_u16m2: |
| 49 | +** ... |
| 50 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 51 | +** ... |
| 52 | +*/ |
| 53 | + |
| 54 | +void test_sf_vc_fv_se_u16m2(const int bit_field26, const int bit_field11_7, vuint16m2_t vs2, float16_t fs1, size_t vl) |
| 55 | +{ |
| 56 | + __riscv_sf_vc_fv_se_u16m2(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 57 | +} |
| 58 | + |
| 59 | +/* |
| 60 | +** test_sf_vc_fv_se_u16m4: |
| 61 | +** ... |
| 62 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 63 | +** ... |
| 64 | +*/ |
| 65 | + |
| 66 | +void test_sf_vc_fv_se_u16m4(const int bit_field26, const int bit_field11_7, vuint16m4_t vs2, float16_t fs1, size_t vl) |
| 67 | +{ |
| 68 | + __riscv_sf_vc_fv_se_u16m4(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 69 | +} |
| 70 | + |
| 71 | +/* |
| 72 | +** test_sf_vc_fv_se_u16m8: |
| 73 | +** ... |
| 74 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 75 | +** ... |
| 76 | +*/ |
| 77 | + |
| 78 | +void test_sf_vc_fv_se_u16m8(const int bit_field26, const int bit_field11_7, vuint16m8_t vs2, float16_t fs1, size_t vl) |
| 79 | +{ |
| 80 | + __riscv_sf_vc_fv_se_u16m8(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 81 | +} |
| 82 | + |
| 83 | +/* |
| 84 | +** test_sf_vc_fv_se_u32mf2: |
| 85 | +** ... |
| 86 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 87 | +** ... |
| 88 | +*/ |
| 89 | + |
| 90 | +void test_sf_vc_fv_se_u32mf2(const int bit_field26, const int bit_field11_7, vuint32mf2_t vs2, float32_t fs1, size_t vl) |
| 91 | +{ |
| 92 | + __riscv_sf_vc_fv_se_u32mf2(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 93 | +} |
| 94 | + |
| 95 | +/* |
| 96 | +** test_sf_vc_fv_se_u32m1: |
| 97 | +** ... |
| 98 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 99 | +** ... |
| 100 | +*/ |
| 101 | + |
| 102 | +void test_sf_vc_fv_se_u32m1(const int bit_field26, const int bit_field11_7, vuint32m1_t vs2, float32_t fs1, size_t vl) |
| 103 | +{ |
| 104 | + __riscv_sf_vc_fv_se_u32m1(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 105 | +} |
| 106 | + |
| 107 | +/* |
| 108 | +** test_sf_vc_fv_se_u32m2: |
| 109 | +** ... |
| 110 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 111 | +** ... |
| 112 | +*/ |
| 113 | + |
| 114 | +void test_sf_vc_fv_se_u32m2(const int bit_field26, const int bit_field11_7, vuint32m2_t vs2, float32_t fs1, size_t vl) |
| 115 | +{ |
| 116 | + __riscv_sf_vc_fv_se_u32m2(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 117 | +} |
| 118 | + |
| 119 | +/* |
| 120 | +** test_sf_vc_fv_se_u32m4: |
| 121 | +** ... |
| 122 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 123 | +** ... |
| 124 | +*/ |
| 125 | + |
| 126 | +void test_sf_vc_fv_se_u32m4(const int bit_field26, const int bit_field11_7, vuint32m4_t vs2, float32_t fs1, size_t vl) |
| 127 | +{ |
| 128 | + __riscv_sf_vc_fv_se_u32m4(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 129 | +} |
| 130 | + |
| 131 | +/* |
| 132 | +** test_sf_vc_fv_se_u32m8: |
| 133 | +** ... |
| 134 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 135 | +** ... |
| 136 | +*/ |
| 137 | + |
| 138 | +void test_sf_vc_fv_se_u32m8(const int bit_field26, const int bit_field11_7, vuint32m8_t vs2, float32_t fs1, size_t vl) |
| 139 | +{ |
| 140 | + __riscv_sf_vc_fv_se_u32m8(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 141 | +} |
| 142 | + |
| 143 | +/* |
| 144 | +** test_sf_vc_fv_se_u64m1: |
| 145 | +** ... |
| 146 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 147 | +** ... |
| 148 | +*/ |
| 149 | + |
| 150 | +void test_sf_vc_fv_se_u64m1(const int bit_field26, const int bit_field11_7, vuint64m1_t vs2, float64_t fs1, size_t vl) |
| 151 | +{ |
| 152 | + __riscv_sf_vc_fv_se_u64m1(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 153 | +} |
| 154 | + |
| 155 | +/* |
| 156 | +** test_sf_vc_fv_se_u64m2: |
| 157 | +** ... |
| 158 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 159 | +** ... |
| 160 | +*/ |
| 161 | + |
| 162 | +void test_sf_vc_fv_se_u64m2(const int bit_field26, const int bit_field11_7, vuint64m2_t vs2, float64_t fs1, size_t vl) |
| 163 | +{ |
| 164 | + __riscv_sf_vc_fv_se_u64m2(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 165 | +} |
| 166 | + |
| 167 | +/* |
| 168 | +** test_sf_vc_fv_se_u64m4: |
| 169 | +** ... |
| 170 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 171 | +** ... |
| 172 | +*/ |
| 173 | + |
| 174 | +void test_sf_vc_fv_se_u64m4(const int bit_field26, const int bit_field11_7, vuint64m4_t vs2, float64_t fs1, size_t vl) |
| 175 | +{ |
| 176 | + __riscv_sf_vc_fv_se_u64m4(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 177 | +} |
| 178 | + |
| 179 | +/* |
| 180 | +** test_sf_vc_fv_se_u64m8: |
| 181 | +** ... |
| 182 | +** sf\.vc\.fv\t[0-9]+,[0-9]+,v[0-9]+,fa[0-9]+ |
| 183 | +** ... |
| 184 | +*/ |
| 185 | + |
| 186 | +void test_sf_vc_fv_se_u64m8(const int bit_field26, const int bit_field11_7, vuint64m8_t vs2, float64_t fs1, size_t vl) |
| 187 | +{ |
| 188 | + __riscv_sf_vc_fv_se_u64m8(bit_field26, bit_field11_7, vs2, fs1, vl); |
| 189 | +} |
0 commit comments