Skip to content

Commit f6f4230

Browse files
authored
Unrolled build for #144160
Rollup merge of #144160 - Gelbpunkt:debuginfo-tests-ppc, r=oli-obk 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 #128973 applies to PowerPC targets as well, though I've only tested 64-bit Linux targets.
2 parents 051d0e8 + e1b6cfe commit f6f4230

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

src/tools/compiletest/src/directives.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
861861
"ignore-openbsd",
862862
"ignore-pass",
863863
"ignore-powerpc",
864+
"ignore-powerpc64",
864865
"ignore-remote",
865866
"ignore-riscv64",
866867
"ignore-rustc-debug-assertions",

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ 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+
// FIXME: Including f16 and f32 in the same tuple emits `__gnu_h2f_ieee`, which
64+
// does not exist on some targets like PowerPC.
65+
// See https://github.com/llvm/llvm-project/issues/97981 and
66+
// https://github.com/rust-lang/compiler-builtins/issues/655
67+
let b = unsafe { F16 };
6368
}
6469

6570
fn _zzz() {()}

tests/debuginfo/basic-types-globals.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ 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+
// FIXME: Including f16 and f32 in the same tuple emits `__gnu_h2f_ieee`, which
68+
// does not exist on some targets like PowerPC.
69+
// See https://github.com/llvm/llvm-project/issues/97981 and
70+
// https://github.com/rust-lang/compiler-builtins/issues/655
71+
let b = unsafe { F16 };
6772
}
6873

6974
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)