rust/tests/ui/simd
Matthias Krüger bb089d7a92
Rollup merge of #137851 - folkertdev:simd-intrinsic-mask-signed, r=workingjubilee
improve `simd_select` error message when used with invalid mask type

followup to https://github.com/rust-lang/rust/pull/137828

This PR improves the error message for an invalid `simd_select` mask type, and adds testing for `simd_scatter` and `simd_gather` being used with invalid mask types.

the `simd_masked_load` and `simd_masked_store` intrinsics already generated a better error message:

0c72c0d11a/tests/ui/simd/masked-load-store-build-fail.rs (L24-L37)

r? `@workingjubilee`
2025-03-02 22:44:25 +01:00
..
intrinsic improve error message and testing of using an unsigned simd mask 2025-03-01 12:58:22 +01:00
array-trait.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
array-trait.stderr tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
array-type.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
const-err-trumps-simd-err.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
const-err-trumps-simd-err.stderr Shorten span of panic failures in const context 2025-02-28 16:28:41 +00:00
dont-invalid-bitcast-masks.rs test: dont optimize to invalid bitcasts 2024-06-24 16:54:18 -07:00
dont-invalid-bitcast-x86_64.rs test: dont optimize to invalid bitcasts 2024-06-24 16:54:18 -07:00
generics.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
issue-17170.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
issue-32947.rs run some tests on emscripten again 2025-02-24 19:48:24 +01:00
issue-39720.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
issue-85915-simd-ptrs.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
issue-89193.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
issue-105439.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
libm_no_std_cant_float.rs
libm_no_std_cant_float.stderr
libm_std_can_float.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
masked-load-store-build-fail.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
masked-load-store-build-fail.stderr remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
masked-load-store-check-fail.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
masked-load-store-check-fail.stderr remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
masked-load-store.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
monomorphize-heterogeneous.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
monomorphize-heterogeneous.stderr Ban non-array SIMD 2024-09-09 19:39:43 -07:00
monomorphize-shuffle-index.generic.stderr remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
monomorphize-shuffle-index.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
monomorphize-too-long.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
monomorphize-too-long.stderr Ban non-array SIMD 2024-09-09 19:39:43 -07:00
monomorphize-zero-length.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
monomorphize-zero-length.stderr Ban non-array SIMD 2024-09-09 19:39:43 -07:00
not-out-of-bounds.rs simd_shuffle: require index argument to be a vector 2024-09-14 14:43:24 +02:00
not-out-of-bounds.stderr simd_shuffle: require index argument to be a vector 2024-09-14 14:43:24 +02:00
portable-intrinsics-arent-exposed.rs
portable-intrinsics-arent-exposed.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
repr_packed.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
shuffle.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
simd-bitmask-notpow2.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
simd-bitmask.rs remove most simd_ intrinsic declaration in tests 2025-02-27 12:22:59 +01:00
size-align.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
target-feature-mixup.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
type-generic-monomorphisation-empty.rs fix use of platform_intrinsics in tests 2024-02-25 08:15:44 +01:00
type-generic-monomorphisation-empty.stderr
type-generic-monomorphisation-extern-nonnull-ptr.rs Update tests. 2025-01-07 16:04:14 +01:00
type-generic-monomorphisation-non-primitive.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-generic-monomorphisation-non-primitive.stderr
type-generic-monomorphisation-oversized.rs fix use of platform_intrinsics in tests 2024-02-25 08:15:44 +01:00
type-generic-monomorphisation-oversized.stderr
type-generic-monomorphisation-power-of-two.rs fix use of platform_intrinsics in tests 2024-02-25 08:15:44 +01:00
type-generic-monomorphisation-wide-ptr.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
type-generic-monomorphisation-wide-ptr.stderr Ban non-array SIMD 2024-09-09 19:39:43 -07:00
type-generic-monomorphisation.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
type-generic-monomorphisation.stderr
type-len.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
type-len.stderr Ban non-array SIMD 2024-09-09 19:39:43 -07:00
type-wide-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-wide-ptr.stderr
wasm-simd-indirect.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00