Skip to content

Avx512f #927

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 32 commits into from
Oct 17, 2020
Merged

Avx512f #927

merged 32 commits into from
Oct 17, 2020

Conversation

minybot
Copy link
Contributor

@minybot minybot commented Oct 12, 2020

roundscale_round: ps,pd; roundscale: ps,pd
scalef_round: ps,pd; scalef: ps,pd
reduce_mul: epi64, reduce_max: epi64,epu64, reduce_min: epi64,epu64, reduce_and: epi64, reduce_or: epi64
fixupimm_round: ps,pd; fixupimm: ps,pd
ternarylogic: epi32, epi64
int2mask, mask2int, stream: ps,pd,si512
mask_set1: epi32,epi64, maskz_set1: epi32,epi64
test_epi32_mask, test_epi64_mask, testn_epi32_mask, testn_epi64_mask
mask_mov: epi32,epi64,ps,pd; maskz_mov: epi32,epi64,ps,pd
mm_mask_add: ss,sd; mm_mask_sub: ss,sd; mm_mask_mul: ss,sd; mm_mask_div: ss,sd;
add_round: ss,sd; sub_round: ss,sd; mul_round: ss,sd; div_round: ss,sd;
mask_sqrt: ss,sd; sqrt_round: ss,sd;
rsqrt14: ss,sd; rcp14: ss,sd;
getexp: ss,sd; getexp_round: ss,sd; getmant: ss,sd; getmant_round: ss,sd;
roundscale: ss,sd; roundscale_round: ss,sd; scalef: ss,sd; scalef_round: ss,sd;
mask_move: ss,sd;
mask_fmadd: ss,sd; mask_round: ss,sd;

@rust-highfive
Copy link

r? @Amanieu

(rust_highfive has picked a reviewer for you, use r? to override)

transmute(simd_select_bitmask(k, ternarylogic, zero))
}

/// Normalize the mantissas of packed single-precision (32-bit) floating-point elements in a, and store the results in dst. This intrinsic essentially calculates ±(2^k)*|x.significand|, where k depends on the interval range defined by interv and the sign depends on sc and the source sign.
Copy link
Member

Choose a reason for hiding this comment

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

Accidentally duplicated comment?

#[inline]
#[target_feature(enable = "avx512f")] // generate normal and code instead of kmovw
pub unsafe fn _mm512_int2mask(mask: i32) -> __mmask16 {
assert!(mask >= 0);
Copy link
Member

Choose a reason for hiding this comment

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

Remove this assert, we should silently truncate in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

@Amanieu Amanieu merged commit 9b9a7d5 into rust-lang:master Oct 17, 2020
@minybot minybot deleted the avx512f branch October 17, 2020 13:09
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