Skip to content

Commit 0fd6689

Browse files
committed
enable ABI compat tests for nvptx and csky
1 parent da159eb commit 0fd6689

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

compiler/rustc_ty_utils/src/abi.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ fn fn_abi_sanity_check<'tcx>(
520520
assert!(
521521
matches!(&*cx.tcx.sess.target.arch, "wasm32" | "wasm64")
522522
|| matches!(spec_abi, SpecAbi::PtxKernel | SpecAbi::Unadjusted),
523-
r#"`PassMode::Direct` for aggregates only allowed for "unadjusted" and "ptx-kernel" functions and on wasm\nProblematic type: {:#?}"#,
523+
"`PassMode::Direct` for aggregates only allowed for \"unadjusted\" and \"ptx-kernel\" functions and on wasm\n
524+
Problematic type: {:#?}",
524525
arg.layout,
525526
);
526527
}

tests/ui/abi/compatibility.rs

+6-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,12 @@
5252
//@ revisions: m68k
5353
//@[m68k] compile-flags: --target m68k-unknown-linux-gnu
5454
//@[m68k] needs-llvm-components: m68k
55-
// FIXME: disabled on nvptx64 since the target ABI fails the sanity check
56-
// see https://github.com/rust-lang/rust/issues/117480
57-
/* revisions: nvptx64
58-
[nvptx64] compile-flags: --target nvptx64-nvidia-cuda
59-
[nvptx64] needs-llvm-components: nvptx
60-
*/
61-
// FIXME: disabled since it fails on CI saying the csky component is missing
62-
/* revisions: csky
63-
[csky] compile-flags: --target csky-unknown-linux-gnuabiv2
64-
[csky] needs-llvm-components: csky
65-
*/
55+
//@revisions: nvptx64
56+
//@[nvptx64] compile-flags: --target nvptx64-nvidia-cuda
57+
//@[nvptx64] needs-llvm-components: nvptx
58+
//@revisions: csky
59+
//@[csky] compile-flags: --target csky-unknown-linux-gnuabiv2
60+
//@[csky] needs-llvm-components: csky
6661
#![feature(rustc_attrs, unsized_fn_params, transparent_unions)]
6762
#![cfg_attr(not(host), feature(no_core, lang_items), no_std, no_core)]
6863
#![allow(unused, improper_ctypes_definitions, internal_features)]

0 commit comments

Comments
 (0)