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 <adrian@travitia.xyz>
This commit is contained in:
Jens Reidel
2025-07-18 23:26:43 +02:00
parent 9cd918bcbb
commit 1d0eddbedd
4 changed files with 10 additions and 2 deletions
+1
View File
@@ -854,6 +854,7 @@ fn line_directive<'line>(
"ignore-openbsd",
"ignore-pass",
"ignore-powerpc",
"ignore-powerpc64",
"ignore-remote",
"ignore-riscv64",
"ignore-rustc-debug-assertions",
@@ -59,7 +59,10 @@
fn main() {
_zzz(); // #break
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F16, F32, F64) };
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F32, F64) };
// N.B. Including f16 and f32 in the same tuple emits `__gnu_h2f_ieee`, which does
// not exist on some targets like PowerPC
let b = unsafe { F16 };
}
fn _zzz() {()}
+4 -1
View File
@@ -63,7 +63,10 @@
fn main() {
_zzz(); // #break
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F16, F32, F64) };
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F32, F64) };
// N.B. Including f16 and f32 in the same tuple emits `__gnu_h2f_ieee`, which does
// not exist on some targets like PowerPC
let b = unsafe { F16 };
}
fn _zzz() {()}
@@ -3,6 +3,7 @@
//@ compile-flags:-g
//@ ignore-windows-gnu: #128973
//@ ignore-aarch64-unknown-linux-gnu (gdb tries to read from 0x0; FIXME: #128973)
//@ ignore-powerpc64: #128973 on both -gnu and -musl
// === GDB TESTS ===================================================================================