2025-02-16 16:56:22 +00:00
|
|
|
//@ add-core-stubs
|
2024-11-10 10:36:50 +00:00
|
|
|
//@ needs-llvm-components: sparc
|
|
|
|
//@ compile-flags: --target=sparc-unknown-none-elf --crate-type=rlib
|
|
|
|
//@ build-pass
|
|
|
|
//@ ignore-pass (test emits codegen-time warnings)
|
|
|
|
#![no_core]
|
2025-02-16 16:56:22 +00:00
|
|
|
#![feature(no_core, repr_simd)]
|
2024-11-10 10:36:50 +00:00
|
|
|
#![allow(improper_ctypes_definitions)]
|
|
|
|
|
2025-02-16 16:56:22 +00:00
|
|
|
extern crate minicore;
|
|
|
|
use minicore::*;
|
2024-11-10 10:36:50 +00:00
|
|
|
|
|
|
|
#[repr(simd)]
|
|
|
|
pub struct SimdVec([i32; 4]);
|
|
|
|
|
|
|
|
pub extern "C" fn pass_by_vec(_: SimdVec) {}
|
2025-02-15 19:02:16 +00:00
|
|
|
//~^ this function definition uses SIMD vector type `SimdVec` which is not currently supported with the chosen ABI
|
2024-11-10 10:36:50 +00:00
|
|
|
//~| WARNING this was previously accepted by the compiler
|