Index: llvm/trunk/test/MC/AMDGPU/hsa-sgpr-init-bug-v3.s =================================================================== --- llvm/trunk/test/MC/AMDGPU/hsa-sgpr-init-bug-v3.s +++ llvm/trunk/test/MC/AMDGPU/hsa-sgpr-init-bug-v3.s @@ -2,7 +2,7 @@ // RUN: llvm-objdump -s -j .rodata %t | FileCheck --check-prefix=OBJDUMP %s // big endian not supported -// XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc +// XFAIL: host-byteorder-big-endian // Check that SGPR init bug on gfx803 is corrected by the assembler, setting // GRANULATED_WAVEFRONT_SGPR_COUNT to 11. Index: llvm/trunk/test/MC/AMDGPU/hsa-v3.s =================================================================== --- llvm/trunk/test/MC/AMDGPU/hsa-v3.s +++ llvm/trunk/test/MC/AMDGPU/hsa-v3.s @@ -4,7 +4,7 @@ // RUN: llvm-objdump -s -j .rodata %t | FileCheck --check-prefix=OBJDUMP %s // big endian not supported -// XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc +// XFAIL: host-byteorder-big-endian // READOBJ: Section Headers // READOBJ: .text PROGBITS {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9]+}} AX {{[0-9]+}} {{[0-9]+}} 256 Index: llvm/trunk/test/Transforms/SampleProfile/gcc-simple.ll =================================================================== --- llvm/trunk/test/Transforms/SampleProfile/gcc-simple.ll +++ llvm/trunk/test/Transforms/SampleProfile/gcc-simple.ll @@ -1,6 +1,6 @@ ; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/gcc-simple.afdo -S | FileCheck %s ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/gcc-simple.afdo -S | FileCheck %s -; XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc +; XFAIL: host-byteorder-big-endian ; Original code: ; ; #include Index: llvm/trunk/test/Transforms/SampleProfile/indirect-call-gcc.ll =================================================================== --- llvm/trunk/test/Transforms/SampleProfile/indirect-call-gcc.ll +++ llvm/trunk/test/Transforms/SampleProfile/indirect-call-gcc.ll @@ -4,7 +4,7 @@ ; format profile. ; It is expected to fail on certain architectures as gcc profile reader does ; not work. -; XFAIL: powerpc64-, s390x, mips-, mips64-, sparc +; XFAIL: host-byteorder-big-endian define void @test(void ()*) !dbg !3 { %2 = alloca void ()* Index: llvm/trunk/test/lit.cfg.py =================================================================== --- llvm/trunk/test/lit.cfg.py +++ llvm/trunk/test/lit.cfg.py @@ -177,6 +177,8 @@ and any(config.llvm_host_triple.startswith(x) for x in known_arches)): config.available_features.add("llvm-64-bits") +config.available_features.add("host-byteorder-" + sys.byteorder + "-endian") + # Others/can-execute.txt if sys.platform not in ['win32']: config.available_features.add('can-execute') Index: llvm/trunk/test/tools/llvm-cov/copy_block_helper.m =================================================================== --- llvm/trunk/test/tools/llvm-cov/copy_block_helper.m +++ llvm/trunk/test/tools/llvm-cov/copy_block_helper.m @@ -29,4 +29,4 @@ int main(int argc, const char *argv[]) { test(0); } // llvm-cov doesn't work on big endian yet -// XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc +// XFAIL: host-byteorder-big-endian Index: llvm/trunk/test/tools/llvm-cov/gcov47_compatibility.cpp =================================================================== --- llvm/trunk/test/tools/llvm-cov/gcov47_compatibility.cpp +++ llvm/trunk/test/tools/llvm-cov/gcov47_compatibility.cpp @@ -27,4 +27,4 @@ } // GCOV: -: [[@LINE]]:} // llvm-cov doesn't work on big endian yet -// XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc +// XFAIL: host-byteorder-big-endian Index: llvm/trunk/test/tools/llvm-cov/llvm-cov.test =================================================================== --- llvm/trunk/test/tools/llvm-cov/llvm-cov.test +++ llvm/trunk/test/tools/llvm-cov/llvm-cov.test @@ -120,4 +120,4 @@ RUN: llvm-cov gcov test_exit_block_arcs.c 2>&1 | FileCheck %s -check-prefix=EXIT_BLOCK_ARCS EXIT_BLOCK_ARCS: (main) has arcs from exit block. -XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc +XFAIL: host-byteorder-big-endian Index: llvm/trunk/test/tools/llvm-cov/range_based_for.cpp =================================================================== --- llvm/trunk/test/tools/llvm-cov/range_based_for.cpp +++ llvm/trunk/test/tools/llvm-cov/range_based_for.cpp @@ -26,4 +26,4 @@ } // GCOV: -: [[@LINE]]:} // llvm-cov doesn't work on big endian yet -// XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc +// XFAIL: host-byteorder-big-endian Index: llvm/trunk/test/tools/llvm-profdata/gcc-gcov-sample-profile.test =================================================================== --- llvm/trunk/test/tools/llvm-profdata/gcc-gcov-sample-profile.test +++ llvm/trunk/test/tools/llvm-profdata/gcc-gcov-sample-profile.test @@ -1,7 +1,7 @@ The input gcov file has been generated on a little endian machine. Expect failures on big endian systems. -XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc +XFAIL: host-byteorder-big-endian Tests for sample profiles encoded in GCC's gcov format.