Files
rust/tests/ui/simd/empty-simd-vector-in-operand.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
252 B
Rust
Raw Normal View History

// Regression test for issue #134224.
#![feature(repr_simd)]
#[repr(simd)]
struct A();
//~^ ERROR SIMD vector cannot be empty
fn main() {
unsafe {
std::arch::asm!("{}", in(xmm_reg) A());
//~^ use of empty SIMD vector `A`
}
}