From c1ea672ddb919c50118f4031845af6bb9be95454 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 3 Jun 2020 19:58:28 -0700 Subject: [PATCH] [gcov] Delete XFAIL: host-byteorder-big-endian Add two to function-numbering.ll and exit-block.ll --- llvm/test/Transforms/GCOVProfiling/exit-block.ll | 1 + llvm/test/Transforms/GCOVProfiling/function-numbering.ll | 1 + llvm/test/Transforms/SampleProfile/gcc-simple.ll | 2 +- llvm/test/Transforms/SampleProfile/indirect-call-gcc.ll | 1 - llvm/test/tools/llvm-cov/gcov-4.7.c | 2 -- llvm/test/tools/llvm-cov/gcov-8.c | 2 -- llvm/test/tools/llvm-cov/gcov-9.c | 2 -- llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test | 2 -- 8 files changed, 3 insertions(+), 10 deletions(-) diff --git a/llvm/test/Transforms/GCOVProfiling/exit-block.ll b/llvm/test/Transforms/GCOVProfiling/exit-block.ll index 202479e..5ab3dcc 100644 --- a/llvm/test/Transforms/GCOVProfiling/exit-block.ll +++ b/llvm/test/Transforms/GCOVProfiling/exit-block.ll @@ -2,6 +2,7 @@ ; RUN: rm -rf %t && mkdir -p %t ; RUN: echo '!19 = !{!"%/t/exit-block.ll", !0}' > %t/1 ; RUN: cat %s %t/1 > %t/2 +; XFAIL: host-byteorder-big-endian ; By default, the exit block is the second. ; RUN: opt -insert-gcov-profiling -disable-output %t/2 diff --git a/llvm/test/Transforms/GCOVProfiling/function-numbering.ll b/llvm/test/Transforms/GCOVProfiling/function-numbering.ll index 973b29f..533bb0a 100644 --- a/llvm/test/Transforms/GCOVProfiling/function-numbering.ll +++ b/llvm/test/Transforms/GCOVProfiling/function-numbering.ll @@ -1,5 +1,6 @@ ; Test that GCOV instrumentation numbers functions correctly when some ; functions aren't emitted. +; XFAIL: host-byteorder-big-endian ; Inject metadata to set the .gcno file location ; RUN: rm -rf %t && mkdir -p %t diff --git a/llvm/test/Transforms/SampleProfile/gcc-simple.ll b/llvm/test/Transforms/SampleProfile/gcc-simple.ll index f778124..71ff19f 100644 --- a/llvm/test/Transforms/SampleProfile/gcc-simple.ll +++ b/llvm/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: host-byteorder-big-endian +; ; Original code: ; ; #include diff --git a/llvm/test/Transforms/SampleProfile/indirect-call-gcc.ll b/llvm/test/Transforms/SampleProfile/indirect-call-gcc.ll index 5298fab..a9b3eaa 100644 --- a/llvm/test/Transforms/SampleProfile/indirect-call-gcc.ll +++ b/llvm/test/Transforms/SampleProfile/indirect-call-gcc.ll @@ -4,7 +4,6 @@ ; format profile. ; It is expected to fail on certain architectures as gcc profile reader does ; not work. -; XFAIL: host-byteorder-big-endian define void @test(void ()*) #0 !dbg !3 { %2 = alloca void ()* diff --git a/llvm/test/tools/llvm-cov/gcov-4.7.c b/llvm/test/tools/llvm-cov/gcov-4.7.c index ab08883..594382b 100644 --- a/llvm/test/tools/llvm-cov/gcov-4.7.c +++ b/llvm/test/tools/llvm-cov/gcov-4.7.c @@ -33,5 +33,3 @@ int main() { // GCOV: #####: [[@LINE]] // HEADER-NEXT: -: 0:Runs:1{{$}} // HEADER-NEXT: -: 0:Programs:1 // HEADER-NEXT: -: 1:/// Test that llvm-cov - -// XFAIL: host-byteorder-big-endian diff --git a/llvm/test/tools/llvm-cov/gcov-8.c b/llvm/test/tools/llvm-cov/gcov-8.c index f8cdd18..4ac9cd6 100644 --- a/llvm/test/tools/llvm-cov/gcov-8.c +++ b/llvm/test/tools/llvm-cov/gcov-8.c @@ -33,5 +33,3 @@ int main() { // GCOV: 1: [[@LINE]]:int // HEADER-NEXT: -: 0:Runs:1{{$}} // HEADER-NEXT: -: 0:Programs:1 // HEADER-NEXT: -: 1:/// Test that llvm-cov - -// XFAIL: host-byteorder-big-endian diff --git a/llvm/test/tools/llvm-cov/gcov-9.c b/llvm/test/tools/llvm-cov/gcov-9.c index 6e631cb..db6190a 100644 --- a/llvm/test/tools/llvm-cov/gcov-9.c +++ b/llvm/test/tools/llvm-cov/gcov-9.c @@ -32,5 +32,3 @@ int main() { // GCOV: 1: [[@LINE]]:int // HEADER-NEXT: -: 0:Data:gcov-9.gcda // HEADER-NEXT: -: 0:Runs:1{{$}} // HEADER-NEXT: -: 1:/// Test that llvm-cov - -// XFAIL: host-byteorder-big-endian diff --git a/llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test b/llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test index 42ae5d2..5f6c2a2 100644 --- a/llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test +++ b/llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test @@ -1,8 +1,6 @@ The input gcov file has been generated on a little endian machine. Expect failures on big endian systems. -XFAIL: host-byteorder-big-endian - Tests for sample profiles encoded in GCC's gcov format. 1- Show all functions. This profile has a single main() function with several -- 2.7.4