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
Copy file name to clipboardexpand all lines: compiler/rustc_codegen_ssa/messages.ftl
+2-1
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,8 @@ codegen_ssa_invalid_monomorphization_inserted_type = invalid monomorphization of
119
119
120
120
codegen_ssa_invalid_monomorphization_invalid_bitmask = invalid monomorphization of `{$name}` intrinsic: invalid bitmask `{$mask_ty}`, expected `u{$expected_int_bits}` or `[u8; {$expected_bytes}]`
121
121
122
-
codegen_ssa_invalid_monomorphization_mask_type = invalid monomorphization of `{$name}` intrinsic: mask element type is `{$ty}`, expected `i_`
122
+
codegen_ssa_invalid_monomorphization_mask_type = invalid monomorphization of `{$name}` intrinsic: found mask element type is `{$ty}`, expected a signed integer type
123
+
.note = the mask may be widened, which only has the correct behavior for signed integers
123
124
124
125
codegen_ssa_invalid_monomorphization_mismatched_lengths = invalid monomorphization of `{$name}` intrinsic: mismatched lengths: mask length `{$m_len}` != other vector length `{$v_len}`
//~^ ERROR expected element type `i32` of second argument `x4<i32>` to be a pointer to the element type `f32`
33
+
34
+
simd_gather(default, pointers, umask);
35
+
//~^ ERROR expected element type `u16` of third argument `x4<u16>` to be a signed integer type
36
+
37
+
simd_gather(default, pointers, fmask);
38
+
//~^ ERROR expected element type `f32` of third argument `x4<f32>` to be a signed integer type
39
+
}
40
+
41
+
unsafe{
42
+
let values = x4([42_f32,43_f32,44_f32,45_f32]);
43
+
simd_scatter(values, mask, mask);
44
+
//~^ ERROR expected element type `i32` of second argument `x4<i32>` to be a pointer to the element type `f32` of the first argument `x4<f32>`, found `i32` != `*mut f32`
45
+
46
+
simd_scatter(values, pointers, umask);
47
+
//~^ ERROR expected element type `u16` of third argument `x4<u16>` to be a signed integer type
48
+
49
+
simd_scatter(values, pointers, fmask);
50
+
//~^ ERROR expected element type `f32` of third argument `x4<f32>` to be a signed integer type
error[E0511]: invalid monomorphization of `simd_gather` intrinsic: expected element type `i32` of second argument `x4<i32>` to be a pointer to the element type `f32` of the first argument `x4<f32>`, found `i32` != `*_ f32`
2
+
--> $DIR/generic-gather.rs:31:9
3
+
|
4
+
LL | simd_gather(default, mask, mask);
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
+
7
+
error[E0511]: invalid monomorphization of `simd_gather` intrinsic: expected element type `u16` of third argument `x4<u16>` to be a signed integer type
8
+
--> $DIR/generic-gather.rs:34:9
9
+
|
10
+
LL | simd_gather(default, pointers, umask);
11
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
+
13
+
error[E0511]: invalid monomorphization of `simd_gather` intrinsic: expected element type `f32` of third argument `x4<f32>` to be a signed integer type
14
+
--> $DIR/generic-gather.rs:37:9
15
+
|
16
+
LL | simd_gather(default, pointers, fmask);
17
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
+
19
+
error[E0511]: invalid monomorphization of `simd_scatter` intrinsic: expected element type `i32` of second argument `x4<i32>` to be a pointer to the element type `f32` of the first argument `x4<f32>`, found `i32` != `*mut f32`
20
+
--> $DIR/generic-gather.rs:43:9
21
+
|
22
+
LL | simd_scatter(values, mask, mask);
23
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
+
25
+
error[E0511]: invalid monomorphization of `simd_scatter` intrinsic: expected element type `u16` of third argument `x4<u16>` to be a signed integer type
26
+
--> $DIR/generic-gather.rs:46:9
27
+
|
28
+
LL | simd_scatter(values, pointers, umask);
29
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
+
31
+
error[E0511]: invalid monomorphization of `simd_scatter` intrinsic: expected element type `f32` of third argument `x4<f32>` to be a signed integer type
32
+
--> $DIR/generic-gather.rs:49:9
33
+
|
34
+
LL | simd_scatter(values, pointers, fmask);
35
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
+
37
+
error: aborting due to 6 previous errors
38
+
39
+
For more information about this error, try `rustc --explain E0511`.
0 commit comments