Skip to content

Commit 4a00f1a

Browse files
authored
[mlir][test] XFAIL little-endian-only tests on SPARC (#103726)
3 MLIR tests `FAIL` on SPARC, both Solaris/sparcv9 and Linux/sparc64: ``` MLIR :: Conversion/ArithToSPIRV/arith-to-spirv-le-specific.mlir MLIR :: IR/elements-attr-interface.mlir MLIR :: Target/LLVMIR/llvmir-le-specific.mlir ``` The issue is always the same: the tests in question are little-endian-only currently, so this patch `XFAIL`s them on `sparc*` as is already done for `s390x`. Tested on `sparcv9-sun-solaris2.11`, `sparc64-unknown-linux-gnu`, `amd64-pc-solaris2.11`, and `x86_64-pc-linux-gnu`.
1 parent 845431a commit 4a00f1a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mlir/test/Conversion/ArithToSPIRV/arith-to-spirv-le-specific.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
// XFAIL: target=s390x-{{.*}}
13+
// XFAIL: target={{(s390x|sparc.*)-.*}}
1414

1515
module attributes {
1616
spirv.target_env = #spirv.target_env<

mlir/test/IR/elements-attr-interface.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: mlir-opt %s -test-elements-attr-interface -verify-diagnostics
22

33
// Parsing external resources does not work on big-endian platforms currently
4-
// XFAIL: target=s390x-{{.*}}
4+
// XFAIL: target={{(s390x|sparc.*)-.*}}
55

66
// This test contains various `ElementsAttr` attributes, and tests the support
77
// for iterating the values of these attributes using various native C++ types.

mlir/test/Target/LLVMIR/llvmir-le-specific.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: mlir-translate -mlir-to-llvmir -split-input-file %s | FileCheck %s
22

33
// Decoding the attribute does not work on big-endian platforms currently
4-
// XFAIL: target=s390x-{{.*}}
4+
// XFAIL: target={{(s390x|sparc.*)-.*}}
55

66
// CHECK{LITERAL}: @dense_resource_tensor_constant = internal constant [5 x float] [float 0x3FCA034080000000, float 0xBFD0466300000000, float 0xBFD75DDF80000000, float 0xBFDE074F40000000, float 0x3FDDD3A1C0000000]
77
llvm.mlir.global internal constant @dense_resource_tensor_constant(dense_resource<dense_resource_test_5xf32> : tensor<5xf32>) : !llvm.array<5 x f32>
@@ -24,4 +24,4 @@ llvm.mlir.global internal constant @dense_resource_multidim_vector_constant(dens
2424
dense_resource_test_2x2xf32: "0x0800000054A3B53ED6C0B33E55D1A2BDE5D2BB3E"
2525
}
2626
}
27-
#-}
27+
#-}

0 commit comments

Comments
 (0)