File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
mlir/test/Conversion/VectorToLLVM Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -808,6 +808,22 @@ func.func @insert_scalar_into_vec_2d_f32_dynamic_idx_scalable(%arg0: vector<1x[1
808808// CHECK: llvm.insertelement {{.*}} : vector<[16]xf32>
809809// CHECK: llvm.insertvalue {{.*}} : !llvm.array<1 x vector<[16]xf32>>
810810
811+
812+ // -----
813+
814+ func.func @insert_scalar_into_vec_2d_f32_dynamic_idx_fail (%arg0: vector <2 x16 xf32 >, %arg1: f32 , %idx: index )
815+ -> vector <2 x16 xf32 > {
816+ %0 = vector.insert %arg1 , %arg0 [%idx , 0 ]: f32 into vector <2 x16 xf32 >
817+ return %0 : vector <2 x16 xf32 >
818+ }
819+
820+ // Currently fails to convert because of the dynamic index in non-innermost
821+ // dimension that converts to a llvm.array, as llvm.extractvalue does not
822+ // support dynamic dimensions
823+
824+ // CHECK-LABEL: @insert_scalar_into_vec_2d_f32_dynamic_idx_fail
825+ // CHECK: vector.insert
826+
811827// -----
812828
813829func.func @insert_scalar_from_vec_2d_f32_dynamic_idxs_compile_time_const (%arg : vector <4 x1 xf32 >) -> vector <4 x1 xf32 > {
You can’t perform that action at this time.
0 commit comments