Skip to content

avx: add _mm256_div_pd, _mm256_div_ps #73

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 1 commit into from
Sep 29, 2017

Conversation

vbarrielle
Copy link
Contributor

It looks like there is no llvm compiler intrinsic for these isntructions, so I mimicked the implementation in https://github.com/llvm-mirror/clang/blob/master/lib/Headers/avxintrin.h#L166-L201

I have inspected the resulting binary with objdump -d, and I get

0000000000028eb0 <_ZN7stdsimd3x863avx13_mm256_div_pd17hfb622e668096388cE>:
   28eb0:       55                      push   %rbp
   28eb1:       48 89 e5                mov    %rsp,%rbp
   28eb4:       c5 fd 5e c1             vdivpd %ymm1,%ymm0,%ymm0
   28eb8:       5d                      pop    %rbp
   28eb9:       c3                      retq   
   28eba:       66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)

which seems ok.

@vbarrielle vbarrielle mentioned this pull request Sep 29, 2017
43 tasks
Copy link
Member

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

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

Poifect!

@BurntSushi BurntSushi merged commit 4a4d47e into rust-lang:master Sep 29, 2017
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