Skip to content

Commit 50b9b70

Browse files
committed
rustup
1 parent 81e59e6 commit 50b9b70

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1597728ef5820d3ffcb9d3f0c890ef7802398751
1+
4459e720bee5a741b962cfcd6f0593b32dc19009

tests/run-pass/portable-simd.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn simd_ops_f32() {
88
assert_eq!(a - b, f32x4::from_array([9.0, 8.0, 7.0, 6.0]));
99
assert_eq!(a * b, f32x4::from_array([10.0, 20.0, 30.0, 40.0]));
1010
assert_eq!(b / a, f32x4::from_array([0.1, 0.2, 0.3, 0.4]));
11-
assert_eq!(a / 2.0, f32x4::splat(5.0));
11+
assert_eq!(a / f32x4::splat(2.0), f32x4::splat(5.0));
1212
assert_eq!(a % b, f32x4::from_array([0.0, 0.0, 1.0, 2.0]));
1313
}
1414

@@ -19,10 +19,10 @@ fn simd_ops_i32() {
1919
assert_eq!(a - b, i32x4::from_array([9, 8, 7, 6]));
2020
assert_eq!(a * b, i32x4::from_array([10, 20, 30, 40]));
2121
assert_eq!(a / b, i32x4::from_array([10, 5, 3, 2]));
22-
assert_eq!(a / 2, i32x4::splat(5));
22+
assert_eq!(a / i32x4::splat(2), i32x4::splat(5));
2323
assert_eq!(a % b, i32x4::from_array([0, 0, 1, 2]));
24-
assert_eq!(b << 2, i32x4::from_array([4, 8, 12, 16]));
25-
assert_eq!(b >> 1, i32x4::from_array([0, 1, 1, 2]));
24+
assert_eq!(b << i32x4::splat(2), i32x4::from_array([4, 8, 12, 16]));
25+
assert_eq!(b >> i32x4::splat(1), i32x4::from_array([0, 1, 1, 2]));
2626
}
2727

2828
fn main() {

0 commit comments

Comments
 (0)