about summary refs log tree commit diff
path: root/library/stdarch
AgeCommit message (Collapse)AuthorLines
2021-05-27wasm: Change `*_bitmask` return values (#1173)Alex Crichton-16/+20
First change them all to unsigned since they're just returning bits, and then also change them to the smallest-size integer which fits the return value (`u16` for `i8x16_bitmask` and `u8` for everything else). This suffers from an LLVM codegen bug for now, but it will hopefully get fixed in the not too distant future.
2021-05-27Add vst1_* neon intrinsics. (#1171)Nils Hasenbanck-4/+979
2021-05-21Add vfma and vfms neon instructions (#1169)Sparrow Li-59/+783
2021-05-20Fix x86 SIMD byte shift intrinsics (#1168)Amanieu d'Antras-98/+115
2021-05-19Modify the implementation of d_s64 suffix instructions (#1167)Sparrow Li-343/+448
2021-05-19Add support for the remaining vget(q)_lane functions. (#1164)Jamie Cunliffe-0/+443
2021-05-15Use `#![feature(const_panic)]` to produce better assertion errors (#1165)Aaron Hill-9/+10
2021-05-15Add vmull_p64 and vmull_high_p64 for aarch64 (#1157)Sparrow Li-5/+45
2021-05-14Add vqmovn neon instructions (#1163)Sparrow Li-23/+593
2021-05-13use simd_shuffle macros on wasm32 (#1162)Ralf Jung-52/+88
2021-05-11manually const-ify shuffle arguments (#1160)Ralf Jung-1549/+1655
2021-05-11Add vset neon instructionsSparrowLii-0/+618
2021-05-11Add doc aliases for all wasm intrinsicsAlex Crichton-0/+263
Recommended in #74372
2021-05-09Avoid using simd_f(min|max) in _mm256_(min|max)_p[sd]Thom Chiovoloni-4/+80
2021-05-08Fix asm! in bit-test intrinsics on x32Amanieu d'Antras-8/+40
2021-05-07Use AT&T syntax to support LLVM 10Amanieu d'Antras-30/+30
2021-05-07Completion of vcvt neon instructionSparrowLii-34/+1716
2021-05-07remvoe const_fn leftoversRalf Jung-1/+0
2021-05-07remove cfg(not(bootstrap)) for 1.54Pietro Albini-1/+0
2021-05-06Add vqrdmulh, vqrdmlah, vqrdmlsh neon instructionsSparrowLii-0/+1395
2021-05-03Update docs for `v128_any_true`Alex Crichton-1/+1
2021-05-03Another round of wasm SIMD updatesAlex Crichton-35/+53
This round is dependant on https://github.com/rust-lang/llvm-project/pull/101 landing first in rust-lang/rust and won't pass CI until that does. That PR, however, will also break wasm CI because it's changing how the wasm target works. My goal here is to open this early to get it out there so that when that PR lands in rust-lang/rust and CI breaks in stdarch then this can be merged to make CI green again. The changes here are mostly around the codegen for various intrinsics. Some wasm-specific intrinsics have been removed in favor of more general LLVM intrinsics, and other intrinsics have been removed in favor of pattern-matching codegen. The only new instruction supported as part of this chagne is `v128.any_true`. This leaves only one instruction unsupported in LLVM which is `i64x2.abs`. I think the codegen for the instruction is correct in stdsimd, though, and LLVM just needs to update with a pattern-match to actually emit the opcode. That'll happen in a future LLVM update.
2021-04-30Add vmul_n, vmul_lane, vmulx neon instructions (#1147)Sparrow Li-117/+2262
2021-04-28Add vmla_n, vmla_lane, vmls_n, vmls_lane neon instructions (#1145)Sparrow Li-6/+2528
2021-04-26Remove `#![feature(try_trait)]` from a test (#1142)scottmcm-33/+38
I'm working on `try_trait_v2` which will break this, so I'm going around removing uses from the rustc tree where I can.
2021-04-24Move cfg!(target_feature) directly into is_*_feature_detected!() (#1141)Amanieu d'Antras-3/+3
Fixes #1135
2021-04-24add vcopy neon instructions (#1139)Sparrow Li-13/+1646
2021-04-23remove unused const_fn feature (#1140)Ralf Jung-1/+1
2021-04-22Add vrndn neon instructions (#1086)Christopher Serr-44/+55
This adds the neon instructions for lane-wise rounding without actually converting the lanes to integers.
2021-04-21Add vqdmul* neon instructions (#1130)Sparrow Li-40/+2155
2021-04-20add neon instruction vaddlv_* (#1129)surechen-0/+307
2021-04-19Add vrshl, vrshr, vrshrn, vrsra, vsra neon instructions (#1127)Sparrow Li-0/+2205
2021-04-17add neon instruction vfma_n_* (#1122)surechen-2/+138
2021-04-17[DRAFT] intrinsics for all architectures appear in rustdoc (#1104)Sebastian Thiel-1563/+1620
2021-04-16add vqshl, vqshrn, vqshrun neon instructions (#1120)Sparrow Li-49/+1992
2021-04-16Avoid using ebx as an asm! operand (#1121)Amanieu d'Antras-7/+8
It is sometimes reserved by LLVM.
2021-04-15Add vqrsh* neon instructions (#1119)Sparrow Li-126/+1860
2021-04-15aarch64: add uzp1, uzp2 instructions (#1118)liushuyu-0/+826
2021-04-14Typo fix: fist -> first (#1117)scottmcm-2/+2
2021-04-14add neon instruction vfma (#1116)surechen-1/+121
2021-04-13Don't import from core (#1115)Amanieu d'Antras-5/+11
This breaks when core_arch is included as a module in core.
2021-04-12Allow primitive types in the code generator and add vdup instructions (#1114)Sparrow Li-38/+1770
2021-04-11Convert all crates to 2018 edition (#1109)Joshua Nelson-8/+4
2021-04-11Remove remaining uses of #[rustc_args_required_const] (#1113)Amanieu d'Antras-7/+0
2021-04-09add vshl and vshr neon instructions (#1111)Sparrow Li-82/+1724
2021-04-08add neon instruction vsubw_* and vsubl_* (#1112)surechen-0/+696
2021-04-07Updates for wasm simd support (#1110)Alex Crichton-22/+24
* Uncomment some i64-related instruction assertions now that LLVM supports the opcodes. * Fix the codegen for `{i,u}32x4_trunc_sat_f32x4`. This was originally introduced using `simd_cast` but that inherits LLVM's UB related to float-to-integer casts out of bounds. Since the original inception of these intrinsics in LLVM dedicated intrinsics for the wasm instructions have been added, so this swithces the implementation to using those. * Uncomment `f64x2_convert_low_i32x4` instruction assertion and add a test now that this is implemented in Wasmtime.
2021-04-07Deny 2018 idiom lints (#1108)Joshua Nelson-18/+18
This lint is allow by default, which is why this wasn't spotted earlier. It's denied by rust-lang/rust, so it's good to warn about it here so it can be fixed more quickly.
2021-04-06add neon instruction vmaxnm_f* vpmaxnm_f* vminnm_f* vpminnm_f* (#1105)surechen-1/+416
2021-04-02Enable constant parameters in the code generator and add vext instructions ↵Sparrow Li-285/+1078
(#1106)