Skip to content

Commit f338b02

Browse files
committed
test integer SIMD min/max
1 parent 7bc0c98 commit f338b02

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/run-pass/portable-simd.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ fn simd_ops_i32() {
102102
assert_eq!(a % b, i32x4::from_array([0, 0, 1, 2]));
103103
assert_eq!(i32x2::splat(i32::MIN) % i32x2::splat(-1), i32x2::splat(0));
104104
assert_eq!(b.abs(), i32x4::from_array([1, 2, 3, 4]));
105-
// FIXME not a per-lane method (https://github.com/rust-lang/portable-simd/issues/247)
106-
// assert_eq!(a.max(b * i32x4::splat(4)), i32x4::from_array([10, 10, 12, 10]));
107-
// assert_eq!(a.min(b * i32x4::splat(4)), i32x4::from_array([4, 8, 10, -16]));
105+
assert_eq!(a.max(b * i32x4::splat(4)), i32x4::from_array([10, 10, 12, 10]));
106+
assert_eq!(a.min(b * i32x4::splat(4)), i32x4::from_array([4, 8, 10, -16]));
108107

109108
assert_eq!(
110109
i8x4::from_array([i8::MAX, -23, 23, i8::MIN]).saturating_add(i8x4::from_array([1, i8::MIN, i8::MAX, 28])),

0 commit comments

Comments
 (0)