about summary refs log tree commit diff
path: root/library/stdarch
AgeCommit message (Collapse)AuthorLines
2020-12-31Remove no longer necessary bootstrap guards (#975)tmiasko-8/+0
2020-12-25avx512f example (#952)minybot-0/+1276
2020-12-25Avx512bw (#972)minybot-45/+4542
2020-12-21Move code out of constify macros (#973)tmiasko-441/+514
2020-12-14Avx512bw (#971)minybot-13/+3382
2020-12-11Use a bootstrap guard for modules with new target features (#970)tmiasko-0/+8
The recently added modules use target features that are not yet available in rustc compiler used for bootstrapping. Guard them with `#[cfg(not(bootstrap))]`.
2020-12-11Avoid calling intrinsics with invalid const arguments (#969)tmiasko-66/+66
2020-12-09Avx512bw (#965)minybot-2/+2649
2020-12-09Avx512cd (#963)minybot-0/+1173
2020-12-09Add AVX512BITALG (#964)DevJPM-0/+766
This adds the AVX512BITALG intrinsics. It also patches the verification against the Intel Intrinsic Guide because Rust uses a different naming. Added intrinsics match _mm(256|512)?(_maskz?)?_popcnt_epi(8|16) for the popcount ones and _mm(256|512)?(_mask)?_bitshuffle_epi64_mask
2020-12-01Add GFNI Intrinsics (#961)DevJPM-0/+1534
2020-12-01Add AVX512VPOPCNTDQ Intrinsics (#962)DevJPM-0/+544
Adds all 18 intrinsics belongin to AVX512VPOPCNTDQ counting the number of set bits in packed 32 / 64 bit integers. Intrinsics match _mm(256|512)?(_maskz?)?_popcnt_epi(32|64). Versions for packed 8 and 16 bit integers are part of BITALG.
2020-12-01Add VPCLMULQDQ Intrinsics (#943)DevJPM-0/+269
2020-12-01Avx512bw (#960)minybot-60/+1698
2020-11-24Reimplement `_xgetbv` with LLVM intrinsics (#958)Andrew Sadler-4/+3
`_xgetbv` was reimplemented to use inline assembly in #333 since LLVM 3.9 didn't export the intrinsic we needed to use. LLVM 4.0 has since rectified that issue, and since rust's minimum supported version of LLVM is 8.0, this change can be reverted.
2020-11-22Avx512bw (#953)minybot-9/+7007
2020-11-22Add reamained vmax and vmin via auto-generated code (#956)Makoto Kato-46/+858
2020-11-22Add VAES intrinsics (#942)DevJPM-0/+335
2020-11-16Add vrev* instructions. (#950)Makoto Kato-0/+543
2020-11-07Add most single-register load Arm intrinsics. (#941)Adam Hillier-207/+1750
2020-11-07Avx512f (#933)minybot-1933/+5749
2020-11-06Add more addition Arm intrinsics (#939)Adam Hillier-33/+2004
2020-11-06Use --no-show-raw-insn to make disassemble parser simple. (#948)Makoto Kato-9/+3
2020-11-06Replace set-env/set-path with GITHUB_ENV/GITHUB_PATH. (#949)Makoto Kato-6/+6
2020-11-04Replace <c> element by markdown inline code (#946)Nemo157-1/+1
2020-11-04Use black_box instead of llvm_asm (#944)Joseph Richey-6/+6
The implementation is the same (where possible), and it unblocks #904 Signed-off-by: Joe Richey <joerichey@google.com>
2020-11-02Remove trailing semicolons from several macro definitions (#938)Aaron Hill-32/+32
The x86 code contains several macros that following this pattern: ```rust macro_rules! expr { () => { true; } } fn bar(_val: bool) {} fn main() { bar(expr!()); } ``` Here, we have a macro `expr!` that expands to tokens sequence with a trailing semicolon. Currently, the trailing semicolon is ignored when the macro is invoked in expression position, due to https://github.com/rust-lang/rust/issues/33953 If this behavior is changed, then a large number of macro invocations in `stdarch` will stop compiling. Regardless of whether nor not this change is made, removing the semicolon more clearly expresses the intent of the code - these macros are designed to expand to the result of a function call, not ignore its results (as the `;` would suggest).
2020-11-02Fix some clippy lints (#937)Joshua Nelson-88/+80
2020-11-02Add shift-and-insert Arm intrinsics. (#936)Adam Hillier-2/+1076
2020-10-26Add popcount Arm intrinsics. (#935)Adam Hillier-0/+125
2020-10-26Updated CONTRIBUTING.MD for new package name and environment variables (#930)DevJPM-8/+21
2020-10-25Run CI for i686-pc-windows-msvc (#934)Makoto Kato-56/+88
2020-10-20Support ARM crypto extension on A32/T32 (#929)Makoto Kato-18/+48
2020-10-17Avx512f (#927)minybot-237/+8918
2020-10-14Fix URLs (#928)Guillaume Gomez-4/+5
2020-10-10Avx512f (#921)minybot-283/+6856
2020-10-06replace some unions by transmute and make the rest repr(C) (#925)Ralf Jung-36/+11
2020-10-03Fix another "stdimd" typo (#923)Jubilee-1/+1
2020-10-01Remove `cfg(not(doc))` from doctests (#922)Joshua Nelson-6/+0
This was changed from `cfg(dox)` to `cfg(doc)` in https://github.com/rust-lang/stdarch/pull/920. `cfg(doc)` is incorrect here; rustdoc sets `cfg(doctest)`, not `cfg(doc)` in doc-tests. However, this piece of code isn't needed anyway: this code will only ever be run as a doc-test, so it will never be compiled in.
2020-09-29Replace `cfg(dox)` with `cfg(doc)` (#920)Joshua Nelson-30/+27
`dox` has to be set explicitly, but `doc` is set whenever rustdoc runs. This simplifies the doc process to `cargo doc` and means bootstrap can stop passing `--cfg dox` when documenting crates.
2020-09-27remove redundant feature declaration const_fn_transmute in lib.rs (#919)Dong Bo-2/+1
2020-09-26Avx512f (#917)minybot-94/+2355
2020-09-26Implement prefetch hints for aarch64 (#918)Dong Bo-1/+95
Co-authored-by: Wang Maozhang <wangmaozhang@huawei.com>
2020-09-21Switch to intra-doc links (#914)Ivan Tham-14/+0
2020-09-19Avx512f (#912)minybot-43/+1967
2020-09-18Fix typo stdimd -> stdsimd (#915)Jubilee-7/+7
2020-09-17Optimize std_detect's caching (#908)Thom Chiovoloni-34/+47
2020-09-17Remove old TODO (#911)Camelid-3/+1
2020-09-15Avx512f (#907)minybot-95/+2813
2020-09-15Properly escape the '[' and ']' (#910)Jeff Muizelaar-84/+84