@@ -273,7 +273,7 @@ func.func @test_load_gather_sg_map_1(%src: ui64) {
273273 %0 = arith.constant dense <1 >: vector <4 xi1 >
274274 %cst = arith.constant dense <[0 , 8 , 16 , 24 ]> : vector <4 xindex >
275275 %1 = xegpu.create_tdesc %src , %cst : ui64 , vector <4 xindex > -> !xegpu.tensor_desc <4 x2 xf32 , #xegpu.scatter_tdesc_attr <chunk_size = 2 >, #xegpu.sg_map <wi_layout = [4 , 1 ], wi_data = [1 , 1 ]>>
276- // expected-error@+1 {{Unexpected result shape(Expected shape: [2, 1], Given shape: [1, 2]) }}
276+ // expected-error@+1 {{Result shape [1, 2] is not consistent with distributed vector shape [2, 1] for tensor descriptor }}
277277 %2 = xegpu.load %1 , %0 <{l1_hint = #xegpu.cache_hint <cached >, transpose }> : !xegpu.tensor_desc <4 x2 xf32 , #xegpu.scatter_tdesc_attr <chunk_size = 2 >, #xegpu.sg_map <wi_layout = [4 , 1 ], wi_data = [1 , 1 ]>>, vector <4 xi1 > -> vector <1 x2 xf32 >
278278 return
279279}
@@ -283,7 +283,7 @@ func.func @test_load_gather_sg_map_2(%src: ui64) {
283283 %0 = arith.constant dense <1 >: vector <4 xi1 >
284284 %cst = arith.constant dense <[0 , 8 , 16 , 24 ]> : vector <4 xindex >
285285 %1 = xegpu.create_tdesc %src , %cst : ui64 , vector <4 xindex > -> !xegpu.tensor_desc <4 x2 xf32 , #xegpu.scatter_tdesc_attr <chunk_size = 2 >, #xegpu.sg_map <wi_layout = [4 , 1 ], wi_data = [1 , 1 ]>>
286- // expected-error@+1 {{Unexpected result shape(Expected shape: [2, 1], Given shape: [2]) }}
286+ // expected-error@+1 {{esult shape [2] is not consistent with distributed vector shape [2, 1] for tensor descriptor }}
287287 %2 = xegpu.load %1 , %0 <{l1_hint = #xegpu.cache_hint <cached >, transpose }> : !xegpu.tensor_desc <4 x2 xf32 , #xegpu.scatter_tdesc_attr <chunk_size = 2 >, #xegpu.sg_map <wi_layout = [4 , 1 ], wi_data = [1 , 1 ]>>, vector <4 xi1 > -> vector <2 xf32 >
288288 return
289289}
@@ -295,7 +295,7 @@ func.func @test_store_scatter_sg_map_1(%src: ui64) {
295295 %cst = arith.constant dense <[0 , 8 , 16 , 24 ]> : vector <4 xindex >
296296 %val = arith.constant dense <2.9 >: vector <1 x2 xf32 >
297297 %1 = xegpu.create_tdesc %src , %cst : ui64 , vector <4 xindex > -> !xegpu.tensor_desc <4 x2 xf32 , #xegpu.scatter_tdesc_attr <chunk_size = 2 >, #xegpu.sg_map <wi_layout = [4 , 1 ], wi_data = [1 , 1 ]>>
298- // expected-error@+1 {{Unexpected value shape(Expected shape: [2, 1], Given shape: [1, 2]) }}
298+ // expected-error@+1 {{Result shape [1, 2] is not consistent with distributed vector shape [2, 1] for tensor descriptor }}
299299 xegpu.store %val , %1 , %0 <{l1_hint = #xegpu.cache_hint <cached >, transpose }> : vector <1 x2 xf32 >, !xegpu.tensor_desc <4 x2 xf32 , #xegpu.scatter_tdesc_attr <chunk_size = 2 >, #xegpu.sg_map <wi_layout = [4 , 1 ], wi_data = [1 , 1 ]>>, vector <4 xi1 >
300300 return
301301}
@@ -306,7 +306,7 @@ func.func @test_store_scatter_sg_map_2(%src: ui64) {
306306 %cst = arith.constant dense <[0 , 8 , 16 , 24 ]> : vector <4 xindex >
307307 %val = arith.constant dense <2.9 >: vector <2 xf32 >
308308 %1 = xegpu.create_tdesc %src , %cst : ui64 , vector <4 xindex > -> !xegpu.tensor_desc <4 x2 xf32 , #xegpu.scatter_tdesc_attr <chunk_size = 2 >, #xegpu.sg_map <wi_layout = [4 , 1 ], wi_data = [1 , 1 ]>>
309- // expected-error@+1 {{Unexpected value shape(Expected shape: [2, 1], Given shape: [2]) }}
309+ // expected-error@+1 {{esult shape [2] is not consistent with distributed vector shape [2, 1] for tensor descriptor }}
310310 xegpu.store %val , %1 , %0 <{l1_hint = #xegpu.cache_hint <cached >, transpose }> : vector <2 xf32 >, !xegpu.tensor_desc <4 x2 xf32 , #xegpu.scatter_tdesc_attr <chunk_size = 2 >, #xegpu.sg_map <wi_layout = [4 , 1 ], wi_data = [1 , 1 ]>>, vector <4 xi1 >
311311 return
312312}
0 commit comments