Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement equality operator for #[simd] types #13856

Closed
brendanzab opened this issue Apr 30, 2014 · 1 comment
Closed

Implement equality operator for #[simd] types #13856

brendanzab opened this issue Apr 30, 2014 · 1 comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@brendanzab
Copy link
Member

#![feature(simd)]
#![allow(experimental)]

use std::unstable::simd::i32x4;

fn main() {
    let x = i32x4(1, 2, 3, 4);
    let y = i32x4(1, 2, 3, 4);
    let _ = x == y;
}
simd-asm-test.rs:9:13: 9:19 error: internal compiler error: non-scalar comparison
simd-asm-test.rs:9     let _ = x == y;
                               ^~~~~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
@Ryman
Copy link
Contributor

Ryman commented Oct 12, 2014

This works on master and has tests.

#![feature(simd)]
#![allow(experimental)]

use std::simd::i32x4;

fn main() {
    let x = i32x4(1, 2, 3, 4);
    let y = i32x4(7, 2, 3, 4);
    let _ = x == y;
    println!("{}", x == y);
}

Tests are here

Can this be closed?

flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 6, 2025
close rust-lang#13856

changelog: [`manual_slice_fill`]: new lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants