Skip to content

Commit 1d0eddb

Browse files
committed
tests: debuginfo: Work around or disable broken tests on powerpc
f16 support for PowerPC has issues in LLVM, therefore we need a small workaround to prevent LLVM from emitting symbols that don't exist for PowerPC yet. It also appears that unused by-value non-immedate issue with gdb 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 1d0eddb

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ static mut F64: f64 = 3.5;
5959
fn main() {
6060
_zzz(); // #break
6161

62-
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F16, F32, F64) };
62+
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F32, F64) };
63+
// N.B. Including f16 and f32 in the same tuple emits `__gnu_h2f_ieee`, which does
64+
// not exist on some targets like PowerPC
65+
let b = unsafe { F16 };
6366
}
6467

6568
fn _zzz() {()}

tests/debuginfo/basic-types-globals.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ static mut F64: f64 = 3.5;
6363
fn main() {
6464
_zzz(); // #break
6565

66-
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F16, F32, F64) };
66+
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F32, F64) };
67+
// N.B. Including f16 and f32 in the same tuple emits `__gnu_h2f_ieee`, which does
68+
// not exist on some targets like PowerPC
69+
let b = unsafe { F16 };
6770
}
6871

6972
fn _zzz() {()}

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)