forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#62828 - nikic:fadd-mul-reductions, r=eddyb
Remove vector fadd/fmul reduction workarounds The bugs that this was working around have been fixed in LLVM 9. r? @gnzlbg
- Loading branch information
Showing
7 changed files
with
37 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 17 additions & 29 deletions
46
src/test/ui/simd-intrinsic/simd-intrinsic-generic-reduction.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,62 @@ | ||
error[E0511]: invalid monomorphization of `simd_reduce_add_ordered` intrinsic: accumulator of simd_reduce_add_ordered is not 0.0 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:36:9 | ||
error[E0511]: invalid monomorphization of `simd_reduce_add_ordered` intrinsic: expected return type `f32` (element of input `f32x4`), found `i32` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:33:9 | ||
| | ||
LL | simd_reduce_add_ordered(z, 2_f32); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | simd_reduce_add_ordered(z, 0); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_mul_ordered` intrinsic: accumulator of simd_reduce_mul_ordered is not 1.0 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:38:9 | ||
error[E0511]: invalid monomorphization of `simd_reduce_mul_ordered` intrinsic: expected return type `f32` (element of input `f32x4`), found `i32` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:35:9 | ||
| | ||
LL | simd_reduce_mul_ordered(z, 3_f32); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | simd_reduce_mul_ordered(z, 1); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_and` intrinsic: expected return type `u32` (element of input `u32x4`), found `f32` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:41:22 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:38:22 | ||
| | ||
LL | let _: f32 = simd_reduce_and(x); | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_or` intrinsic: expected return type `u32` (element of input `u32x4`), found `f32` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:43:22 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:40:22 | ||
| | ||
LL | let _: f32 = simd_reduce_or(x); | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_xor` intrinsic: expected return type `u32` (element of input `u32x4`), found `f32` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:45:22 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:42:22 | ||
| | ||
LL | let _: f32 = simd_reduce_xor(x); | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_and` intrinsic: unsupported simd_reduce_and from `f32x4` with element `f32` to `f32` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:48:22 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:45:22 | ||
| | ||
LL | let _: f32 = simd_reduce_and(z); | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_or` intrinsic: unsupported simd_reduce_or from `f32x4` with element `f32` to `f32` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:50:22 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:47:22 | ||
| | ||
LL | let _: f32 = simd_reduce_or(z); | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_xor` intrinsic: unsupported simd_reduce_xor from `f32x4` with element `f32` to `f32` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:52:22 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:49:22 | ||
| | ||
LL | let _: f32 = simd_reduce_xor(z); | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_all` intrinsic: unsupported simd_reduce_all from `f32x4` with element `f32` to `bool` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:55:23 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:52:23 | ||
| | ||
LL | let _: bool = simd_reduce_all(z); | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_any` intrinsic: unsupported simd_reduce_any from `f32x4` with element `f32` to `bool` | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:57:23 | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:54:23 | ||
| | ||
LL | let _: bool = simd_reduce_any(z); | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_add_ordered` intrinsic: accumulator of simd_reduce_add_ordered is not a constant | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:67:5 | ||
| | ||
LL | simd_reduce_add_ordered(z, x); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0511]: invalid monomorphization of `simd_reduce_mul_ordered` intrinsic: accumulator of simd_reduce_mul_ordered is not a constant | ||
--> $DIR/simd-intrinsic-generic-reduction.rs:69:5 | ||
| | ||
LL | simd_reduce_mul_ordered(z, x); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 12 previous errors | ||
error: aborting due to 10 previous errors | ||
|