mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
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:
@@ -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() {()}
|
||||
|
||||
@@ -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 ===================================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user