Skip to content

Implement comparison operators for int and uint SIMD vectors #13899

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

Merged
merged 2 commits into from
May 3, 2014

Conversation

brendanzab
Copy link
Member

cc. @pcwalton

let return_ty = Type::vector(&type_of(cx.ccx(), t), size as u64);
// LLVM outputs an `< size x i1 >`, so we need to perform a sign extension
// to get the correctly sized type. This will compile to a single instruction
// on once the IR is converted to assembly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove "on". Also I would qualify this statement with "if the SIMD instruction is supported by the target architecture".

@pcwalton
Copy link
Contributor

pcwalton commented May 2, 2014

Looks good modulo one nit.

bors added a commit that referenced this pull request May 3, 2014
@bors bors closed this May 3, 2014
@bors bors merged commit d0da4cf into rust-lang:master May 3, 2014
@brendanzab brendanzab deleted the simd branch May 3, 2014 17:46
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 9, 2025
Using `lifetime.ident.name` in suggestions will not output the raw
modifier. For example, `'r#struct` will be rendered as `'struct` which
would be incorrect.

Fix rust-lang#13899

changelog: [`needless_arbitrary_self_type`]: use the raw lifetime name
in suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants