You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//~^^^^^ ERROR expected element type `u32` of second argument `*const u8` to be a pointer to the element type `u32` of the first argument `Simd<u32, 4>`, found `u32` != `*mut u32`
52
52
53
53
simd_masked_store(
54
-
Simd([5u8;4]),
54
+
Simd([-1i8;4]),
55
55
arr.as_ptr(),
56
-
Simd([-1i8;4])
56
+
Simd([5u8;4])
57
57
);
58
58
//~^^^^^ ERROR expected element type `u8` of second argument `*const u8` to be a pointer to the element type `u8` of the first argument `Simd<u8, 4>`, found `u8` != `*mut u8`
59
59
60
60
simd_masked_store(
61
-
Simd([5u8;2]),
61
+
Simd([-1i8;4]),
62
62
arr.as_mut_ptr(),
63
-
Simd([-1i8;4])
63
+
Simd([5u8;2])
64
64
);
65
-
//~^^^^^ ERROR expected third argument with length 2 (same as input type `Simd<u8, 2>`), found `Simd<i8, 4>` with length 4
65
+
//~^^^^^ ERROR expected third argument with length 4 (same as input type `Simd<i8, 4>`), found `Simd<u8, 2>` with length 2
66
66
67
67
simd_masked_store(
68
-
Simd([5u8;4]),
68
+
Simd([1u32;4]),
69
69
arr.as_mut_ptr(),
70
-
Simd([1u32;4])
70
+
Simd([5u8;4])
71
71
);
72
-
//~^^^^^ ERROR expected element type `u32` of third argument `Simd<u32, 4>` to be a signed integer type
error[E0511]: invalid monomorphization of `simd_masked_store` intrinsic: expected element type `u8` of second argument `*const u8` to be a pointer to the element type `u8` of the first argument `Simd<u8, 4>`, found `u8` != `*mut u8`
52
52
--> $DIR/masked-load-store-build-fail.rs:53:9
53
53
|
54
54
LL | / simd_masked_store(
55
-
LL | | Simd([5u8; 4]),
55
+
LL | | Simd([-1i8; 4]),
56
56
LL | | arr.as_ptr(),
57
-
LL | | Simd([-1i8; 4])
57
+
LL | | Simd([5u8; 4])
58
58
LL | | );
59
59
| |_________^
60
60
61
-
error[E0511]: invalid monomorphization of `simd_masked_store` intrinsic: expected third argument with length 2 (same as input type `Simd<u8, 2>`), found `Simd<i8, 4>` with length 4
61
+
error[E0511]: invalid monomorphization of `simd_masked_store` intrinsic: expected third argument with length 4 (same as input type `Simd<i8, 4>`), found `Simd<u8, 2>` with length 2
62
62
--> $DIR/masked-load-store-build-fail.rs:60:9
63
63
|
64
64
LL | / simd_masked_store(
65
-
LL | | Simd([5u8; 2]),
65
+
LL | | Simd([-1i8; 4]),
66
66
LL | | arr.as_mut_ptr(),
67
-
LL | | Simd([-1i8; 4])
67
+
LL | | Simd([5u8; 2])
68
68
LL | | );
69
69
| |_________^
70
70
71
-
error[E0511]: invalid monomorphization of `simd_masked_store` intrinsic: expected element type `u32` of third argument `Simd<u32, 4>` to be a signed integer type
71
+
error[E0511]: invalid monomorphization of `simd_masked_store` intrinsic: invalid bitmask `Simd<u32, 4>`, expected `u8` or `[u8; 1]`
0 commit comments