Skip to content

Commit f90a6c1

Browse files
committed
tests: debuginfo: Disable broken tests on powerpc
f16 support for PowerPC has issues in LLVM, therefore we need to disable the tests that make use of f16. It also appears that #128973 applies to PowerPC targets as well, though I've only tested 64-bit Linux targets. Signed-off-by: Jens Reidel <[email protected]>
1 parent 9cd918b commit f90a6c1

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

src/tools/compiletest/src/directives.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
854854
"ignore-openbsd",
855855
"ignore-pass",
856856
"ignore-powerpc",
857+
"ignore-powerpc64",
857858
"ignore-remote",
858859
"ignore-riscv64",
859860
"ignore-rustc-debug-assertions",

tests/debuginfo/basic-types-globals-metadata.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
//@ compile-flags:-g
22

3+
// Targets with broken f16 cannot link due to missing __gnu_f2h_ieee
4+
// See https://github.com/llvm/llvm-project/issues/97981
5+
// and https://github.com/rust-lang/compiler-builtins/issues/655
6+
//@ ignore-powerpc
7+
//@ ignore-powerpc64
8+
39
// gdb-command:run
410
// gdb-command:whatis basic_types_globals_metadata::B
511
// gdb-check:type = bool

tests/debuginfo/basic-types-globals.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
//@ compile-flags:-g
44

5+
// Targets with broken f16 cannot link due to missing __gnu_f2h_ieee
6+
// See https://github.com/llvm/llvm-project/issues/97981
7+
// and https://github.com/rust-lang/compiler-builtins/issues/655
8+
//@ ignore-powerpc
9+
//@ ignore-powerpc64
10+
511
//@ [lto] compile-flags:-C lto
612
//@ [lto] no-prefer-dynamic
713

tests/debuginfo/by-value-non-immediate-argument.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//@ compile-flags:-g
44
//@ ignore-windows-gnu: #128973
55
//@ ignore-aarch64-unknown-linux-gnu (gdb tries to read from 0x0; FIXME: #128973)
6+
//@ ignore-powerpc64: #128973 on both -gnu and -musl
67

78
// === GDB TESTS ===================================================================================
89

0 commit comments

Comments
 (0)