Skip to content

Avx #105

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 31 commits into from
Oct 9, 2017
Merged

Avx #105

merged 31 commits into from
Oct 9, 2017

Conversation

gwenn
Copy link
Contributor

@gwenn gwenn commented Oct 8, 2017

No description provided.

/// specified by `imm8`.
#[inline(always)]
#[target_feature = "+avx,+sse"]
#[cfg_attr(test, assert_instr(vcmpeqps, imm8 = 0))] // TODO Validate vcmpps
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean that we just need more assert_instr attributes? Or should the intrustruction here be different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need more assert_instr: the instruction depends on the comparison operand.

src/x86/sse.rs Outdated
#[inline(always)]
#[target_feature = "+sse"]
pub unsafe fn _mm_undefined_ps() -> f32x4 {
mem::uninitialized()
Copy link
Member

Choose a reason for hiding this comment

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

I think this may be causing a fault on i586?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks: when I saw #101, I should have fix _mm_undefined_ps but I did not.

@alexcrichton alexcrichton merged commit 434a69f into rust-lang:master Oct 9, 2017
@alexcrichton
Copy link
Member

Nice!

@gwenn gwenn deleted the avx branch October 10, 2017 17:08
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.

2 participants