Skip to content

Commit 1a025cb

Browse files
committed
Fix negative test names
1 parent b48f114 commit 1a025cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mlir/test/Dialect/MemRef/invalid.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ func.func @test_store_zero_results2(%x: i32, %p: memref<i32>) {
962962

963963
// -----
964964

965-
func.func @negative_load_alignment(%memref: memref<4xi32>) {
965+
func.func @invalid_load_alignment(%memref: memref<4xi32>) {
966966
%c0 = arith.constant 0 : index
967967
// expected-error @below {{'memref.load' op attribute 'alignment' failed to satisfy constraint: 64-bit signless integer attribute whose value is positive and whose value is a power of two > 0}}
968968
%val = memref.load %memref[%c0] { alignment = -1 } : memref<4xi32>
@@ -971,7 +971,7 @@ func.func @negative_load_alignment(%memref: memref<4xi32>) {
971971

972972
// -----
973973

974-
func.func @non_power_of_2_store_alignment(%memref: memref<4xi32>, %val: i32) {
974+
func.func @invalid_store_alignment(%memref: memref<4xi32>, %val: i32) {
975975
%c0 = arith.constant 0 : index
976976
// expected-error @below {{'memref.store' op attribute 'alignment' failed to satisfy constraint: 64-bit signless integer attribute whose value is positive and whose value is a power of two > 0}}
977977
memref.store %val, %memref[%c0] { alignment = 3 } : memref<4xi32>

mlir/test/Dialect/Vector/invalid.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ func.func @vector_load(%src : memref<?xi8>) {
19951995

19961996
// -----
19971997

1998-
func.func @negative_load_alignment(%memref: memref<4xi32>) {
1998+
func.func @invalid_load_alignment(%memref: memref<4xi32>) {
19991999
%c0 = arith.constant 0 : index
20002000
// expected-error @below {{'vector.load' op attribute 'alignment' failed to satisfy constraint: 64-bit signless integer attribute whose value is positive and whose value is a power of two > 0}}
20012001
%val = vector.load %memref[%c0] { alignment = -1 } : memref<4xi32>, vector<4xi32>
@@ -2017,7 +2017,7 @@ func.func @vector_store(%dest : memref<?xi8>, %vec : vector<16x16xi8>) {
20172017

20182018
// -----
20192019

2020-
func.func @non_power_of_2_store_alignment(%memref: memref<4xi32>, %val: vector<4xi32>) {
2020+
func.func @invalid_store_alignment(%memref: memref<4xi32>, %val: vector<4xi32>) {
20212021
%c0 = arith.constant 0 : index
20222022
// expected-error @below {{'vector.store' op attribute 'alignment' failed to satisfy constraint: 64-bit signless integer attribute whose value is positive and whose value is a power of two > 0}}
20232023
vector.store %val, %memref[%c0] { alignment = 3 } : memref<4xi32>, vector<4xi32>

0 commit comments

Comments
 (0)