-
Notifications
You must be signed in to change notification settings - Fork 293
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
Avx512f #927
Conversation
merge from base
merge base
…reduce_and: epi64, reduce_or: epi64
r? @Amanieu (rust_highfive has picked a reviewer for you, use r? to override) |
crates/core_arch/src/x86/avx512f.rs
Outdated
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidentally duplicated comment?
crates/core_arch/src/x86/avx512f.rs
Outdated
#[inline] | ||
#[target_feature(enable = "avx512f")] // generate normal and code instead of kmovw | ||
pub unsafe fn _mm512_int2mask(mask: i32) -> __mmask16 { | ||
assert!(mask >= 0); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
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;