@@ -587,9 +587,9 @@ func.func @extract_load_vec_high_rank(%arg0: memref<?x?x?xf32>, %arg1: index, %a
587
587
return %1 : vector <4 xf32 >
588
588
}
589
589
590
- // CHECK-LABEL: @negative_load_scalar_from_vec_memref
590
+ // CHECK-LABEL: @negative_extract_load_scalar_from_vec_memref
591
591
// CHECK-SAME: (%[[ARG0:.*]]: memref<?xvector<4xf32>>, %[[ARG1:.*]]: index)
592
- func.func @negative_load_scalar_from_vec_memref (%arg0: memref <?xvector <4 xf32 >>, %arg1: index ) -> f32 {
592
+ func.func @negative_extract_load_scalar_from_vec_memref (%arg0: memref <?xvector <4 xf32 >>, %arg1: index ) -> f32 {
593
593
// CHECK: %[[RES:.*]] = vector.load %[[ARG0]][%[[ARG1]]] : memref<?xvector<4xf32>>, vector<4xf32>
594
594
// CHECK: %[[EXT:.*]] = vector.extract %[[RES]][0] : f32 from vector<4xf32>
595
595
// CHECK: return %[[EXT]] : f32
@@ -609,9 +609,9 @@ func.func @negative_extract_load_no_single_use(%arg0: memref<?xf32>, %arg1: inde
609
609
return %1 , %0 : f32 , vector <4 xf32 >
610
610
}
611
611
612
- // CHECK-LABEL: @negative_load_scalable
612
+ // CHECK-LABEL: @negative_extract_load_scalable
613
613
// CHECK-SAME: (%[[ARG0:.*]]: memref<?xf32>, %[[ARG1:.*]]: index)
614
- func.func @negative_load_scalable (%arg0: memref <?xf32 >, %arg1: index ) -> f32 {
614
+ func.func @negative_extract_load_scalable (%arg0: memref <?xf32 >, %arg1: index ) -> f32 {
615
615
// CHECK: %[[RES:.*]] = vector.load %[[ARG0]][%[[ARG1]]] : memref<?xf32>, vector<[1]xf32>
616
616
// CHECK: %[[EXT:.*]] = vector.extract %[[RES]][0] : f32 from vector<[1]xf32>
617
617
// CHECK: return %[[EXT]] : f32
@@ -620,17 +620,6 @@ func.func @negative_load_scalable(%arg0: memref<?xf32>, %arg1: index) -> f32 {
620
620
return %1 : f32
621
621
}
622
622
623
- // CHECK-LABEL: @negative_extract_load_unsupported_ranks
624
- // CHECK-SAME: (%[[ARG0:.*]]: memref<?xf32>, %[[ARG1:.*]]: index)
625
- func.func @negative_extract_load_unsupported_ranks (%arg0: memref <?xf32 >, %arg1: index ) -> vector <4 xf32 > {
626
- // CHECK: %[[RES:.*]] = vector.load %[[ARG0]][%[[ARG1]]] : memref<?xf32>, vector<2x4xf32>
627
- // CHECK: %[[EXT:.*]] = vector.extract %[[RES]][1] : vector<4xf32> from vector<2x4xf32>
628
- // CHECK: return %[[EXT]] : vector<4xf32>
629
- %0 = vector.load %arg0 [%arg1 ] : memref <?xf32 >, vector <2 x4 xf32 >
630
- %1 = vector.extract %0 [1 ] : vector <4 xf32 > from vector <2 x4 xf32 >
631
- return %1 : vector <4 xf32 >
632
- }
633
-
634
623
//-----------------------------------------------------------------------------
635
624
// [Pattern: StoreFromSplat]
636
625
//-----------------------------------------------------------------------------
@@ -653,9 +642,9 @@ func.func @store_broadcast(%arg0: memref<?xf32>, %arg1: index, %arg2: f32) {
653
642
return
654
643
}
655
644
656
- // CHECK-LABEL: @store_broadcast_1d_2d
645
+ // CHECK-LABEL: @store_broadcast_1d_to_2d
657
646
// CHECK-SAME: (%[[ARG0:.*]]: memref<?x?xf32>, %[[ARG1:.*]]: index, %[[ARG2:.*]]: index, %[[ARG3:.*]]: vector<1xf32>)
658
- func.func @store_broadcast_1d_2d (%arg0: memref <?x?xf32 >, %arg1: index , %arg2: index , %arg3: vector <1 xf32 >) {
647
+ func.func @store_broadcast_1d_to_2d (%arg0: memref <?x?xf32 >, %arg1: index , %arg2: index , %arg3: vector <1 xf32 >) {
659
648
// CHECK: vector.store %[[ARG3]], %[[ARG0]][%[[ARG1]], %[[ARG2]]] : memref<?x?xf32>, vector<1xf32>
660
649
%0 = vector.broadcast %arg3 : vector <1 xf32 > to vector <1 x1 xf32 >
661
650
vector.store %0 , %arg0 [%arg1 , %arg2 ] : memref <?x?xf32 >, vector <1 x1 xf32 >
@@ -682,9 +671,9 @@ func.func @negative_store_vec_memref(%arg0: memref<?xvector<1xf32>>, %arg1: inde
682
671
return
683
672
}
684
673
685
- // CHECK-LABEL: @negative_store_non_1
674
+ // CHECK-LABEL: @negative_store_more_than_one_element
686
675
// CHECK-SAME: (%[[ARG0:.*]]: memref<?xf32>, %[[ARG1:.*]]: index, %[[ARG2:.*]]: f32)
687
- func.func @negative_store_non_1 (%arg0: memref <?xf32 >, %arg1: index , %arg2: f32 ) {
676
+ func.func @negative_store_more_than_one_element (%arg0: memref <?xf32 >, %arg1: index , %arg2: f32 ) {
688
677
// CHECK: %[[RES:.*]] = vector.splat %[[ARG2]] : vector<4xf32>
689
678
// CHECK: vector.store %[[RES]], %[[ARG0]][%[[ARG1]]] : memref<?xf32>, vector<4xf32>
690
679
%0 = vector.splat %arg2 : vector <4 xf32 >
0 commit comments