summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2019-05-01 15:36:18 +0000
committerHubert Tong <hubert.reinterpretcast@gmail.com>2019-05-01 15:36:18 +0000
commit02d055a269823ebb4b00119db0c4d656cc3f8894 (patch)
tree7f26b39becba3c98156d816645f22eefea5abf06 /llvm/test/tools/llvm-cov
parent9caa6b5b648535467c6248d3aeaa40fbbe84e0a3 (diff)
downloadbcm5719-llvm-02d055a269823ebb4b00119db0c4d656cc3f8894.tar.gz
bcm5719-llvm-02d055a269823ebb4b00119db0c4d656cc3f8894.zip
[tests] Add host-byteorder-*-endian; update XFAILs of big-endian triples
Summary: Triple components in `XFAIL` lines are tested against the target triple. Various tests that are expected to fail on big-endian hosts are marked as being `XFAIL` for big-endian targets. This patch corrects these tests by having them test against a new `host-byteorder-big-endian` feature. Reviewers: xingxue, sfertile, jasonliu Reviewed By: xingxue Subscribers: jvesely, nhaehnle, fedor.sergeev, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60551 llvm-svn: 359689
Diffstat (limited to 'llvm/test/tools/llvm-cov')
-rw-r--r--llvm/test/tools/llvm-cov/copy_block_helper.m2
-rw-r--r--llvm/test/tools/llvm-cov/gcov47_compatibility.cpp2
-rw-r--r--llvm/test/tools/llvm-cov/llvm-cov.test2
-rw-r--r--llvm/test/tools/llvm-cov/range_based_for.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/tools/llvm-cov/copy_block_helper.m b/llvm/test/tools/llvm-cov/copy_block_helper.m
index b0cf7ffd227..51d0e62b56d 100644
--- a/llvm/test/tools/llvm-cov/copy_block_helper.m
+++ b/llvm/test/tools/llvm-cov/copy_block_helper.m
@@ -29,4 +29,4 @@ void test(id x) { // GCOV: -: [[@LINE]]:void test
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
diff --git a/llvm/test/tools/llvm-cov/gcov47_compatibility.cpp b/llvm/test/tools/llvm-cov/gcov47_compatibility.cpp
index c4302e787db..6458d3ba7ea 100644
--- a/llvm/test/tools/llvm-cov/gcov47_compatibility.cpp
+++ b/llvm/test/tools/llvm-cov/gcov47_compatibility.cpp
@@ -27,4 +27,4 @@ int main(int argc, const char *argv[]) { // GCOV: -: [[@LINE]]:int main(
} // GCOV: -: [[@LINE]]:}
// llvm-cov doesn't work on big endian yet
-// XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc
+// XFAIL: host-byteorder-big-endian
diff --git a/llvm/test/tools/llvm-cov/llvm-cov.test b/llvm/test/tools/llvm-cov/llvm-cov.test
index 1ddbdad15cd..5db15adfca0 100644
--- a/llvm/test/tools/llvm-cov/llvm-cov.test
+++ b/llvm/test/tools/llvm-cov/llvm-cov.test
@@ -120,4 +120,4 @@ RUN: llvm-cov gcov test.c -gcda=test_func_checksum_fail.gcda
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
diff --git a/llvm/test/tools/llvm-cov/range_based_for.cpp b/llvm/test/tools/llvm-cov/range_based_for.cpp
index 3331dff55df..173866c711e 100644
--- a/llvm/test/tools/llvm-cov/range_based_for.cpp
+++ b/llvm/test/tools/llvm-cov/range_based_for.cpp
@@ -26,4 +26,4 @@ int main(int argc, const char *argv[]) { // GCOV: 1: [[@LINE]]:int main(
} // GCOV: -: [[@LINE]]:}
// llvm-cov doesn't work on big endian yet
-// XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc
+// XFAIL: host-byteorder-big-endian
OpenPOWER on IntegriCloud