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 third argument with length 4 (same as input type `Simd<u8, 4>`), found `Simd<i8, 8>` with length 8
23
+
//~^^^^^ ERROR expected third argument with length 8 (same as input type `Simd<i8, 8>`), found `Simd<u8, 4>` with length 4
24
24
25
25
simd_masked_load(
26
-
default,
26
+
Simd::<i8,4>([-1,0, -1, -1]),
27
27
arr.as_ptr()as*consti8,
28
-
Simd::<i8,4>([-1,0, -1, -1])
28
+
default
29
29
);
30
30
//~^^^^^ ERROR expected element type `u8` of second argument `*const i8` to be a pointer to the element type `u8` of the first argument `Simd<u8, 4>`, found `u8` != `*_ u8`
31
31
32
32
simd_masked_load(
33
-
Simd::<u32,4>([9;4]),
33
+
Simd::<i8,4>([-1,0, -1, -1]),
34
34
arr.as_ptr(),
35
-
Simd::<i8,4>([-1,0, -1, -1])
35
+
Simd::<u32,4>([9;4])
36
36
);
37
37
//~^^^^^ 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` != `*_ u32`
38
38
39
39
simd_masked_load(
40
-
default,
40
+
Simd::<u8,4>([1,0,1,1]),
41
41
arr.as_ptr(),
42
-
Simd::<u8,4>([1,0,1,1])
42
+
default
43
43
);
44
-
//~^^^^^ ERROR expected element type `u8` of third argument `Simd<u8, 4>` to be a signed integer type
Copy file name to clipboardExpand all lines: tests/ui/simd/masked-load-store-build-fail.stderr
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,40 +1,40 @@
1
-
error[E0511]: invalid monomorphization of `simd_masked_load` intrinsic: expected third argument with length 4 (same as input type `Simd<u8, 4>`), found `Simd<i8, 8>` with length 8
1
+
error[E0511]: invalid monomorphization of `simd_masked_load` intrinsic: expected third argument with length 8 (same as input type `Simd<i8, 8>`), found `Simd<u8, 4>` with length 4
error[E0511]: invalid monomorphization of `simd_masked_load` intrinsic: expected element type `u8` of second argument `*const i8` to be a pointer to the element type `u8` of the first argument `Simd<u8, 4>`, found `u8` != `*_ u8`
12
12
--> $DIR/masked-load-store-build-fail.rs:25:9
13
13
|
14
14
LL | / simd_masked_load(
15
-
LL | | default,
15
+
LL | | Simd::<i8, 4>([-1, 0, -1, -1]),
16
16
LL | | arr.as_ptr() as *const i8,
17
-
LL | | Simd::<i8, 4>([-1, 0, -1, -1])
17
+
LL | | default
18
18
LL | | );
19
19
| |_________^
20
20
21
21
error[E0511]: invalid monomorphization of `simd_masked_load` intrinsic: 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` != `*_ u32`
22
22
--> $DIR/masked-load-store-build-fail.rs:32:9
23
23
|
24
24
LL | / simd_masked_load(
25
-
LL | | Simd::<u32, 4>([9; 4]),
25
+
LL | | Simd::<i8, 4>([-1, 0, -1, -1]),
26
26
LL | | arr.as_ptr(),
27
-
LL | | Simd::<i8, 4>([-1, 0, -1, -1])
27
+
LL | | Simd::<u32, 4>([9; 4])
28
28
LL | | );
29
29
| |_________^
30
30
31
-
error[E0511]: invalid monomorphization of `simd_masked_load` intrinsic: expected element type `u8` of third argument `Simd<u8, 4>` to be a signed integer type
31
+
error[E0511]: invalid monomorphization of `simd_masked_load` intrinsic: invalid bitmask `Simd<u8, 4>`, expected `u8` or `[u8; 1]`
0 commit comments