diff options
| author | bors <bors@rust-lang.org> | 2025-05-25 21:06:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-25 21:06:24 +0000 |
| commit | 9f8929fbeca4b5c2302b326606ae800156915840 (patch) | |
| tree | cffd61b74a20e6e78c89404323f416a18f69f659 /compiler/rustc_codegen_cranelift/example/std_example.rs | |
| parent | 283db70ace62a0ae704a624e43b68c2ee44b87a6 (diff) | |
| parent | 4aed799d34480f2f9f959ec285e4a0481037f9d3 (diff) | |
| download | rust-9f8929fbeca4b5c2302b326606ae800156915840.tar.gz rust-9f8929fbeca4b5c2302b326606ae800156915840.zip | |
Auto merge of #141557 - bjorn3:sync_cg_clif-2025-05-25, r=bjorn3
Subtree sync for rustc_codegen_cranelift The main highlights this time are a Cranelift update and (thanks for beetrees) f16/f128 support. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/example/std_example.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/std_example.rs b/compiler/rustc_codegen_cranelift/example/std_example.rs index 2d9de2a5b8d..5d83066cffb 100644 --- a/compiler/rustc_codegen_cranelift/example/std_example.rs +++ b/compiler/rustc_codegen_cranelift/example/std_example.rs @@ -166,6 +166,7 @@ fn main() { enum Never {} } + #[cfg(not(target_arch = "s390x"))] // s390x doesn't have vector instructions enabled by default foo(I64X2([0, 0])); transmute_wide_pointer(); @@ -203,9 +204,11 @@ fn rust_call_abi() { rust_call_abi_callee((1, 2)); } +#[cfg_attr(target_arch = "s390x", allow(dead_code))] #[repr(simd)] struct I64X2([i64; 2]); +#[cfg_attr(target_arch = "s390x", allow(dead_code))] #[allow(improper_ctypes_definitions)] extern "C" fn foo(_a: I64X2) {} |
