about summary refs log tree commit diff
path: root/src/test/codegen/simd-intrinsic
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-2272/+0
2022-05-25Update some codegen tests for opaque pointersNikita Popov-10/+10
2021-04-17Don't set `fast`(-math) for certain simd opsSimonas Kazlauskas-98/+98
`fast-math` implies things like functions not being able to accept as an argument or return as a result, say, `inf` which made these functions confusingly named or behaving incorrectly, depending on how you interpret it. Since the time when these intrinsics have been implemented the intrinsics user's (stdsimd) approach has changed significantly and so now it is required that these intrinsics operate normally rather than in "whatever" way. Fixes #84268
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-5/+5
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2021-03-22Update the minimum external LLVM to 10Josh Stone-1/+0
2020-11-29args may be passed by valueAshley Mannix-4/+4
2020-11-29looser regex on local argsAshley Mannix-6/+6
2020-11-24generalize codegen to non 64bit platformsAshley Mannix-6/+6
2020-11-14tweak new codegen test to work on localAshley Mannix-4/+4
2020-11-13remove const_generics from codegen testsAshley Mannix-4/+4
2020-11-08Support repr(simd) on ADTs containing a single array fieldgnzlbg-0/+91
This PR allows using `#[repr(simd)]` on ADTs containing a single array field: ```rust #[repr(simd)] struct S0([f32; 4]); #[repr(simd)] struct S1<const N: usize>([f32; N]); #[repr(simd)] struct S2<T, const N: usize>([T; N]); ``` This should allow experimenting with portable packed SIMD abstractions on nightly that make use of const generics.
2019-12-02Update the minimum external LLVM to 7Josh Stone-2/+0
LLVM 7 is over a year old, which should be plenty for compatibility. The last LLVM 6 holdout was llvm-emscripten, which went away in #65501. I've also included a fix for LLVM 8 lacking `MemorySanitizerOptions`, which was broken by #66522.
2019-10-31rustc_codegen_ssa: move all set_var_name calls to mir::debuginfo.Eduard-Mihai Burtescu-83/+96
2019-10-16Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-114/+83
- Compatible with Emscripten 1.38.46-upstream or later upstream. - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the old incorrect wasm32 C call ABI with the correct one, preserving the old one as wasm32_bindgen_compat for wasm-bindgen compatibility. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649.
2019-10-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-83/+114
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-04Fix ABI, run and fix more tests, re-enable CI for PRsThomas Lively-83/+83
2019-10-04Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-31/+0
- Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the incorrect wasm32 C call ABI with the old asmjs version, which is correct for both wasm32 and JS. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Temporarily makes Emscripten targets use panic=abort by default because supporting unwinding will require an LLVM patch.
2019-02-08Move simd intrinsic codegen tests into the simd-intrinsic subdirgnzlbg-0/+1517
2019-02-08Add simd_saturating_{add,sub} intrinsicsgnzlbg-0/+685