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.

16 lines
274 B
Rust
Raw Normal View History

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