Skip to content

Commit bdd76e6

Browse files
[test] Restrict thinlto icp IR test to little endian systems, and the compiler-rt test to three tested platforms. (#76001)
- The IR test failed to import indirect callees on big-endian systems. The raw profiles are generated on little-endian systems. Going to require little-endian. - Limit the compiler-rt test to three tested platforms.
1 parent a8081ed commit bdd76e6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// - Generate ThinLTO summary file with LLVM bitcodes, and run `function-import` pass.
1414
// - Run `pgo-icall-prom` pass for the IR module which needs to import callees.
1515

16+
// REQUIRES: windows || linux || darwin
17+
1618
// This test and IR test llvm/test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll
1719
// are complementary to each other; a compiler-rt test has better test coverage
1820
// on different platforms, and the IR test is less restrictive in terms of
@@ -35,8 +37,6 @@
3537
// specifies OS as Triple::OS::Win32
3638
//
3739
// UNSUPPORTED: target={{i.86.*windows.*}}
38-
// FIXME: Re-enable the test on powerpc.
39-
// UNSUPPORTED: powerpc-registered-target
4040

4141
// RUN: rm -rf %t && split-file %s %t && cd %t
4242

llvm/test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
; The raw profiles storesd compressed function names, so profile reader should
1010
; be built with zlib support to decompress them.
1111
; REQUIRES: zlib
12-
; FIXME: Re-enable the test on powerpc.
13-
; UNSUPPORTED: powerpc-registered-target
12+
; REQUIRES: host-byteorder-little-endian
1413

1514
; RUN: rm -rf %t && split-file %s %t && cd %t
1615

0 commit comments

Comments
 (0)