2025-04-03 10:59:49 +02:00
|
|
|
//! At the time of writing, the list of "which target feature enables which vector size" is empty
|
|
|
|
|
//! for SPARC. Ensure that this leads to all vector sizes causing an error.
|
2025-02-16 17:56:22 +01:00
|
|
|
//@ add-core-stubs
|
2024-11-10 11:36:50 +01:00
|
|
|
//@ needs-llvm-components: sparc
|
|
|
|
|
//@ compile-flags: --target=sparc-unknown-none-elf --crate-type=rlib
|
2025-04-03 10:59:49 +02:00
|
|
|
//@ build-fail
|
2024-11-10 11:36:50 +01:00
|
|
|
#![no_core]
|
2025-02-16 17:56:22 +01:00
|
|
|
#![feature(no_core, repr_simd)]
|
2024-11-10 11:36:50 +01:00
|
|
|
#![allow(improper_ctypes_definitions)]
|
|
|
|
|
|
2025-02-16 17:56:22 +01:00
|
|
|
extern crate minicore;
|
|
|
|
|
use minicore::*;
|
2024-11-10 11:36:50 +01:00
|
|
|
|
|
|
|
|
#[repr(simd)]
|
|
|
|
|
pub struct SimdVec([i32; 4]);
|
|
|
|
|
|
|
|
|
|
pub extern "C" fn pass_by_vec(_: SimdVec) {}
|
2025-04-03 10:59:49 +02:00
|
|
|
//~^ ERROR: this function definition uses SIMD vector type `SimdVec` which is not currently supported with the chosen ABI
|