
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
30 lines
1.4 KiB
Plaintext
30 lines
1.4 KiB
Plaintext
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
|
|
inlined callees.
|
|
RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov | FileCheck %s --check-prefix=SHOW1
|
|
SHOW1: Function: main: 364084, 0, 6 sampled lines
|
|
SHOW1: 2.3: inlined callee: _Z3fool: 243786, 0, 3 sampled lines
|
|
SHOW1: 1.3: inlined callee: _Z3bari: 0, 0, 2 sampled lines
|
|
SHOW1: 1.7: inlined callee: _Z3bari: 98558, 0, 2 sampled lines
|
|
SHOW1: 1.8: inlined callee: _Z3bari: 0, 0, 2 sampled lines
|
|
|
|
2- Convert the profile to text encoding and check that they are both
|
|
identical.
|
|
RUN: llvm-profdata merge --sample %p/Inputs/gcc-sample-profile.gcov --text -o - | llvm-profdata show --sample - -o %t-text
|
|
RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov -o %t-gcov
|
|
RUN: diff %t-text %t-gcov
|
|
|
|
4- Merge the gcov and text encodings of the profile and check that the
|
|
counters have doubled.
|
|
RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov -o %t-gcov
|
|
RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov %t-gcov -o - | FileCheck %s --check-prefix=MERGE1
|
|
MERGE1: main:728168:0
|
|
MERGE1: 2.3: 120298
|
|
MERGE1: 2.3: _Z3fool:487572
|