| 1 |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 2 |
| 2 |
// REQUIRES: riscv-registered-target |
| 3 |
// RUN: %clang_cc1 -triple riscv64 -target-feature +v -target-feature +zfh \ |
| 4 |
// RUN: -target-feature +zvfh -disable-O0-optnone \ |
| 5 |
// RUN: -emit-llvm %s -o - | opt -S -passes=mem2reg | \ |
| 6 |
// RUN: FileCheck --check-prefix=CHECK-RV64 %s |
| 7 |
|
| 8 |
#include <riscv_vector.h> |
| 9 |
|
| 10 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_f32mf2x2 |
| 11 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 1 x float>, <vscale x 1 x float> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] { |
| 12 |
// CHECK-RV64-NEXT: entry: |
| 13 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float> } [[V_TUPLE]], 0 |
| 14 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float> } [[V_TUPLE]], 1 |
| 15 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv1f32.i64(<vscale x 1 x float> [[TMP0]], <vscale x 1 x float> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 16 |
// CHECK-RV64-NEXT: ret void |
| 17 |
// |
| 18 |
void test_vssseg2e32_v_f32mf2x2(float *base, ptrdiff_t bstride, vfloat32mf2x2_t v_tuple, size_t vl) { |
| 19 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 20 |
} |
| 21 |
|
| 22 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_f32m1x2 |
| 23 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 2 x float>, <vscale x 2 x float> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 24 |
// CHECK-RV64-NEXT: entry: |
| 25 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float> } [[V_TUPLE]], 0 |
| 26 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float> } [[V_TUPLE]], 1 |
| 27 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv2f32.i64(<vscale x 2 x float> [[TMP0]], <vscale x 2 x float> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 28 |
// CHECK-RV64-NEXT: ret void |
| 29 |
// |
| 30 |
void test_vssseg2e32_v_f32m1x2(float *base, ptrdiff_t bstride, vfloat32m1x2_t v_tuple, size_t vl) { |
| 31 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 32 |
} |
| 33 |
|
| 34 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_f32m2x2 |
| 35 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 4 x float>, <vscale x 4 x float> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 36 |
// CHECK-RV64-NEXT: entry: |
| 37 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float> } [[V_TUPLE]], 0 |
| 38 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float> } [[V_TUPLE]], 1 |
| 39 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv4f32.i64(<vscale x 4 x float> [[TMP0]], <vscale x 4 x float> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 40 |
// CHECK-RV64-NEXT: ret void |
| 41 |
// |
| 42 |
void test_vssseg2e32_v_f32m2x2(float *base, ptrdiff_t bstride, vfloat32m2x2_t v_tuple, size_t vl) { |
| 43 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 44 |
} |
| 45 |
|
| 46 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_f32m4x2 |
| 47 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 8 x float>, <vscale x 8 x float> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 48 |
// CHECK-RV64-NEXT: entry: |
| 49 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float> } [[V_TUPLE]], 0 |
| 50 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float> } [[V_TUPLE]], 1 |
| 51 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv8f32.i64(<vscale x 8 x float> [[TMP0]], <vscale x 8 x float> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 52 |
// CHECK-RV64-NEXT: ret void |
| 53 |
// |
| 54 |
void test_vssseg2e32_v_f32m4x2(float *base, ptrdiff_t bstride, vfloat32m4x2_t v_tuple, size_t vl) { |
| 55 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 56 |
} |
| 57 |
|
| 58 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_i32mf2x2 |
| 59 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 60 |
// CHECK-RV64-NEXT: entry: |
| 61 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE]], 0 |
| 62 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE]], 1 |
| 63 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv1i32.i64(<vscale x 1 x i32> [[TMP0]], <vscale x 1 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 64 |
// CHECK-RV64-NEXT: ret void |
| 65 |
// |
| 66 |
void test_vssseg2e32_v_i32mf2x2(int32_t *base, ptrdiff_t bstride, vint32mf2x2_t v_tuple, size_t vl) { |
| 67 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 68 |
} |
| 69 |
|
| 70 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_i32m1x2 |
| 71 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 72 |
// CHECK-RV64-NEXT: entry: |
| 73 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE]], 0 |
| 74 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE]], 1 |
| 75 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv2i32.i64(<vscale x 2 x i32> [[TMP0]], <vscale x 2 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 76 |
// CHECK-RV64-NEXT: ret void |
| 77 |
// |
| 78 |
void test_vssseg2e32_v_i32m1x2(int32_t *base, ptrdiff_t bstride, vint32m1x2_t v_tuple, size_t vl) { |
| 79 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 80 |
} |
| 81 |
|
| 82 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_i32m2x2 |
| 83 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 84 |
// CHECK-RV64-NEXT: entry: |
| 85 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE]], 0 |
| 86 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE]], 1 |
| 87 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv4i32.i64(<vscale x 4 x i32> [[TMP0]], <vscale x 4 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 88 |
// CHECK-RV64-NEXT: ret void |
| 89 |
// |
| 90 |
void test_vssseg2e32_v_i32m2x2(int32_t *base, ptrdiff_t bstride, vint32m2x2_t v_tuple, size_t vl) { |
| 91 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 92 |
} |
| 93 |
|
| 94 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_i32m4x2 |
| 95 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 96 |
// CHECK-RV64-NEXT: entry: |
| 97 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE]], 0 |
| 98 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE]], 1 |
| 99 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv8i32.i64(<vscale x 8 x i32> [[TMP0]], <vscale x 8 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 100 |
// CHECK-RV64-NEXT: ret void |
| 101 |
// |
| 102 |
void test_vssseg2e32_v_i32m4x2(int32_t *base, ptrdiff_t bstride, vint32m4x2_t v_tuple, size_t vl) { |
| 103 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 104 |
} |
| 105 |
|
| 106 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_u32mf2x2 |
| 107 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 108 |
// CHECK-RV64-NEXT: entry: |
| 109 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE]], 0 |
| 110 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE]], 1 |
| 111 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv1i32.i64(<vscale x 1 x i32> [[TMP0]], <vscale x 1 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 112 |
// CHECK-RV64-NEXT: ret void |
| 113 |
// |
| 114 |
void test_vssseg2e32_v_u32mf2x2(uint32_t *base, ptrdiff_t bstride, vuint32mf2x2_t v_tuple, size_t vl) { |
| 115 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 116 |
} |
| 117 |
|
| 118 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_u32m1x2 |
| 119 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 120 |
// CHECK-RV64-NEXT: entry: |
| 121 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE]], 0 |
| 122 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE]], 1 |
| 123 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv2i32.i64(<vscale x 2 x i32> [[TMP0]], <vscale x 2 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 124 |
// CHECK-RV64-NEXT: ret void |
| 125 |
// |
| 126 |
void test_vssseg2e32_v_u32m1x2(uint32_t *base, ptrdiff_t bstride, vuint32m1x2_t v_tuple, size_t vl) { |
| 127 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 128 |
} |
| 129 |
|
| 130 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_u32m2x2 |
| 131 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 132 |
// CHECK-RV64-NEXT: entry: |
| 133 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE]], 0 |
| 134 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE]], 1 |
| 135 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv4i32.i64(<vscale x 4 x i32> [[TMP0]], <vscale x 4 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 136 |
// CHECK-RV64-NEXT: ret void |
| 137 |
// |
| 138 |
void test_vssseg2e32_v_u32m2x2(uint32_t *base, ptrdiff_t bstride, vuint32m2x2_t v_tuple, size_t vl) { |
| 139 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 140 |
} |
| 141 |
|
| 142 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_u32m4x2 |
| 143 |
// CHECK-RV64-SAME: (ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 144 |
// CHECK-RV64-NEXT: entry: |
| 145 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE]], 0 |
| 146 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE]], 1 |
| 147 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.nxv8i32.i64(<vscale x 8 x i32> [[TMP0]], <vscale x 8 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], i64 [[VL]]) |
| 148 |
// CHECK-RV64-NEXT: ret void |
| 149 |
// |
| 150 |
void test_vssseg2e32_v_u32m4x2(uint32_t *base, ptrdiff_t bstride, vuint32m4x2_t v_tuple, size_t vl) { |
| 151 |
return __riscv_vssseg2e32(base, bstride, v_tuple, vl); |
| 152 |
} |
| 153 |
|
| 154 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_f32mf2x2_m |
| 155 |
// CHECK-RV64-SAME: (<vscale x 1 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 1 x float>, <vscale x 1 x float> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 156 |
// CHECK-RV64-NEXT: entry: |
| 157 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float> } [[V_TUPLE]], 0 |
| 158 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x float>, <vscale x 1 x float> } [[V_TUPLE]], 1 |
| 159 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv1f32.i64(<vscale x 1 x float> [[TMP0]], <vscale x 1 x float> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 1 x i1> [[MASK]], i64 [[VL]]) |
| 160 |
// CHECK-RV64-NEXT: ret void |
| 161 |
// |
| 162 |
void test_vssseg2e32_v_f32mf2x2_m(vbool64_t mask, float *base, ptrdiff_t bstride, vfloat32mf2x2_t v_tuple, size_t vl) { |
| 163 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 164 |
} |
| 165 |
|
| 166 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_f32m1x2_m |
| 167 |
// CHECK-RV64-SAME: (<vscale x 2 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 2 x float>, <vscale x 2 x float> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 168 |
// CHECK-RV64-NEXT: entry: |
| 169 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float> } [[V_TUPLE]], 0 |
| 170 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x float>, <vscale x 2 x float> } [[V_TUPLE]], 1 |
| 171 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv2f32.i64(<vscale x 2 x float> [[TMP0]], <vscale x 2 x float> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 2 x i1> [[MASK]], i64 [[VL]]) |
| 172 |
// CHECK-RV64-NEXT: ret void |
| 173 |
// |
| 174 |
void test_vssseg2e32_v_f32m1x2_m(vbool32_t mask, float *base, ptrdiff_t bstride, vfloat32m1x2_t v_tuple, size_t vl) { |
| 175 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 176 |
} |
| 177 |
|
| 178 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_f32m2x2_m |
| 179 |
// CHECK-RV64-SAME: (<vscale x 4 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 4 x float>, <vscale x 4 x float> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 180 |
// CHECK-RV64-NEXT: entry: |
| 181 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float> } [[V_TUPLE]], 0 |
| 182 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x float>, <vscale x 4 x float> } [[V_TUPLE]], 1 |
| 183 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv4f32.i64(<vscale x 4 x float> [[TMP0]], <vscale x 4 x float> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 4 x i1> [[MASK]], i64 [[VL]]) |
| 184 |
// CHECK-RV64-NEXT: ret void |
| 185 |
// |
| 186 |
void test_vssseg2e32_v_f32m2x2_m(vbool16_t mask, float *base, ptrdiff_t bstride, vfloat32m2x2_t v_tuple, size_t vl) { |
| 187 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 188 |
} |
| 189 |
|
| 190 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_f32m4x2_m |
| 191 |
// CHECK-RV64-SAME: (<vscale x 8 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 8 x float>, <vscale x 8 x float> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 192 |
// CHECK-RV64-NEXT: entry: |
| 193 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float> } [[V_TUPLE]], 0 |
| 194 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x float>, <vscale x 8 x float> } [[V_TUPLE]], 1 |
| 195 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv8f32.i64(<vscale x 8 x float> [[TMP0]], <vscale x 8 x float> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 8 x i1> [[MASK]], i64 [[VL]]) |
| 196 |
// CHECK-RV64-NEXT: ret void |
| 197 |
// |
| 198 |
void test_vssseg2e32_v_f32m4x2_m(vbool8_t mask, float *base, ptrdiff_t bstride, vfloat32m4x2_t v_tuple, size_t vl) { |
| 199 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 200 |
} |
| 201 |
|
| 202 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_i32mf2x2_m |
| 203 |
// CHECK-RV64-SAME: (<vscale x 1 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 204 |
// CHECK-RV64-NEXT: entry: |
| 205 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE]], 0 |
| 206 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE]], 1 |
| 207 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv1i32.i64(<vscale x 1 x i32> [[TMP0]], <vscale x 1 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 1 x i1> [[MASK]], i64 [[VL]]) |
| 208 |
// CHECK-RV64-NEXT: ret void |
| 209 |
// |
| 210 |
void test_vssseg2e32_v_i32mf2x2_m(vbool64_t mask, int32_t *base, ptrdiff_t bstride, vint32mf2x2_t v_tuple, size_t vl) { |
| 211 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 212 |
} |
| 213 |
|
| 214 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_i32m1x2_m |
| 215 |
// CHECK-RV64-SAME: (<vscale x 2 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 216 |
// CHECK-RV64-NEXT: entry: |
| 217 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE]], 0 |
| 218 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE]], 1 |
| 219 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv2i32.i64(<vscale x 2 x i32> [[TMP0]], <vscale x 2 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 2 x i1> [[MASK]], i64 [[VL]]) |
| 220 |
// CHECK-RV64-NEXT: ret void |
| 221 |
// |
| 222 |
void test_vssseg2e32_v_i32m1x2_m(vbool32_t mask, int32_t *base, ptrdiff_t bstride, vint32m1x2_t v_tuple, size_t vl) { |
| 223 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 224 |
} |
| 225 |
|
| 226 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_i32m2x2_m |
| 227 |
// CHECK-RV64-SAME: (<vscale x 4 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 228 |
// CHECK-RV64-NEXT: entry: |
| 229 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE]], 0 |
| 230 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE]], 1 |
| 231 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv4i32.i64(<vscale x 4 x i32> [[TMP0]], <vscale x 4 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 4 x i1> [[MASK]], i64 [[VL]]) |
| 232 |
// CHECK-RV64-NEXT: ret void |
| 233 |
// |
| 234 |
void test_vssseg2e32_v_i32m2x2_m(vbool16_t mask, int32_t *base, ptrdiff_t bstride, vint32m2x2_t v_tuple, size_t vl) { |
| 235 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 236 |
} |
| 237 |
|
| 238 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_i32m4x2_m |
| 239 |
// CHECK-RV64-SAME: (<vscale x 8 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 240 |
// CHECK-RV64-NEXT: entry: |
| 241 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE]], 0 |
| 242 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE]], 1 |
| 243 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv8i32.i64(<vscale x 8 x i32> [[TMP0]], <vscale x 8 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 8 x i1> [[MASK]], i64 [[VL]]) |
| 244 |
// CHECK-RV64-NEXT: ret void |
| 245 |
// |
| 246 |
void test_vssseg2e32_v_i32m4x2_m(vbool8_t mask, int32_t *base, ptrdiff_t bstride, vint32m4x2_t v_tuple, size_t vl) { |
| 247 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 248 |
} |
| 249 |
|
| 250 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_u32mf2x2_m |
| 251 |
// CHECK-RV64-SAME: (<vscale x 1 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 252 |
// CHECK-RV64-NEXT: entry: |
| 253 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE]], 0 |
| 254 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 1 x i32>, <vscale x 1 x i32> } [[V_TUPLE]], 1 |
| 255 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv1i32.i64(<vscale x 1 x i32> [[TMP0]], <vscale x 1 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 1 x i1> [[MASK]], i64 [[VL]]) |
| 256 |
// CHECK-RV64-NEXT: ret void |
| 257 |
// |
| 258 |
void test_vssseg2e32_v_u32mf2x2_m(vbool64_t mask, uint32_t *base, ptrdiff_t bstride, vuint32mf2x2_t v_tuple, size_t vl) { |
| 259 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 260 |
} |
| 261 |
|
| 262 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_u32m1x2_m |
| 263 |
// CHECK-RV64-SAME: (<vscale x 2 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 264 |
// CHECK-RV64-NEXT: entry: |
| 265 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE]], 0 |
| 266 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } [[V_TUPLE]], 1 |
| 267 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv2i32.i64(<vscale x 2 x i32> [[TMP0]], <vscale x 2 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 2 x i1> [[MASK]], i64 [[VL]]) |
| 268 |
// CHECK-RV64-NEXT: ret void |
| 269 |
// |
| 270 |
void test_vssseg2e32_v_u32m1x2_m(vbool32_t mask, uint32_t *base, ptrdiff_t bstride, vuint32m1x2_t v_tuple, size_t vl) { |
| 271 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 272 |
} |
| 273 |
|
| 274 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_u32m2x2_m |
| 275 |
// CHECK-RV64-SAME: (<vscale x 4 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 276 |
// CHECK-RV64-NEXT: entry: |
| 277 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE]], 0 |
| 278 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } [[V_TUPLE]], 1 |
| 279 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv4i32.i64(<vscale x 4 x i32> [[TMP0]], <vscale x 4 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 4 x i1> [[MASK]], i64 [[VL]]) |
| 280 |
// CHECK-RV64-NEXT: ret void |
| 281 |
// |
| 282 |
void test_vssseg2e32_v_u32m2x2_m(vbool16_t mask, uint32_t *base, ptrdiff_t bstride, vuint32m2x2_t v_tuple, size_t vl) { |
| 283 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 284 |
} |
| 285 |
|
| 286 |
// CHECK-RV64-LABEL: define dso_local void @test_vssseg2e32_v_u32m4x2_m |
| 287 |
// CHECK-RV64-SAME: (<vscale x 8 x i1> [[MASK:%.*]], ptr noundef [[BASE:%.*]], i64 noundef [[BSTRIDE:%.*]], { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] { |
| 288 |
// CHECK-RV64-NEXT: entry: |
| 289 |
// CHECK-RV64-NEXT: [[TMP0:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE]], 0 |
| 290 |
// CHECK-RV64-NEXT: [[TMP1:%.*]] = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } [[V_TUPLE]], 1 |
| 291 |
// CHECK-RV64-NEXT: call void @llvm.riscv.vssseg2.mask.nxv8i32.i64(<vscale x 8 x i32> [[TMP0]], <vscale x 8 x i32> [[TMP1]], ptr [[BASE]], i64 [[BSTRIDE]], <vscale x 8 x i1> [[MASK]], i64 [[VL]]) |
| 292 |
// CHECK-RV64-NEXT: ret void |
| 293 |
// |
| 294 |
void test_vssseg2e32_v_u32m4x2_m(vbool8_t mask, uint32_t *base, ptrdiff_t bstride, vuint32m4x2_t v_tuple, size_t vl) { |
| 295 |
return __riscv_vssseg2e32(mask, base, bstride, v_tuple, vl); |
| 296 |
} |
| 297 |
|