about summary refs log tree commit diff
path: root/src/test/ui/simd
AgeCommit message (Collapse)AuthorLines
2020-12-26update testsBastian Kauschke-4/+4
2020-11-29Auto merge of #78380 - bstrie:rm-old-num-const-from-tests, r=jyn514bors-5/+3
Update tests to remove old numeric constants Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
2020-11-29Update tests to remove old numeric constantsbstrie-5/+3
Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
2020-11-15fix up tidyAshley Mannix-1/+2
2020-11-15add a canary test for complex repr(simd)Ashley Mannix-0/+50
2020-11-08update ui testsAshley Mannix-14/+12
2020-11-08Support repr(simd) on ADTs containing a single array fieldgnzlbg-68/+139
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.
2020-10-04Rollup merge of #77504 - Amanieu:select_simd_bitmask, r=ecstatic-morseJonas Schievink-0/+25
Support vectors with fewer than 8 elements for simd_select_bitmask Resolves the issue raised here: https://github.com/rust-lang/stdarch/issues/310#issuecomment-693730094
2020-10-03Support vectors with fewer than 8 elements for simd_select_bitmaskAmanieu d'Antras-0/+25
2020-10-03Flatten arrows with further commentJubilee Young-5/+6
2020-10-02Macro-expand test to cover all possible lanesJubilee Young-15/+249
2020-09-15Test and reject out-of-bounds shuffle vectorsJubilee Young-0/+32
2020-07-31compiletest: ignore-endian-big, fixes #74829, fixes #74885Ximin Luo-4/+2
2020-06-10Migrate to numeric associated constsLzu Tao-5/+5
2020-04-14Update the minimum external LLVM to 8Josh Stone-1/+0
LLVM 8 was released on March 20, 2019, over a year ago.
2020-02-20Revert "Rollup merge of #69280 - ↵Dylan MacKenzie-5/+1
ecstatic-morse:promote-shuffle-no-special-case, r=petrochenkov" This reverts commit 61d3b6dedb1ec1f3e3cbd3d66b1a3453225bc37c, reversing changes made to c6ad1e2c2a0c7e48537617d36085f866fa6a65a3.
2020-02-18Add `#[rustc_args_required_const]` to `simd_shuffle` testsDylan MacKenzie-1/+5
2020-01-02Revert `const_err` lint checking of castsWesley Wiser-1/+0
Reverts part of #67676
2019-12-30Lint overflowing integer casts in const propWesley Wiser-0/+1
This extends the invalid cases we catch in const prop to include overflowing integer casts using the same machinery as the overflowing binary and unary operation logic.
2019-12-02Update the minimum external LLVM to 7Josh Stone-1/+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-11-02Remove erroneous error-pattern from run-pass testTomasz Miąsko-1/+0
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+1597