Skip to content

Commit 18a4a3a

Browse files
committed
fix overflowing_literals in avx512fp16 tests
1 parent f4b4ab3 commit 18a4a3a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

library/stdarch/crates/core_arch/src/x86/avx512fp16.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23993,16 +23993,16 @@ mod tests {
2399323993

2399423994
#[simd_test(enable = "avx512fp16,avx512vl")]
2399523995
const fn test_mm256_reduce_mul_ph() {
23996-
let a = _mm256_set1_ph(2.0);
23996+
let a = _mm256_set1_ph(1.2);
2399723997
let r = _mm256_reduce_mul_ph(a);
23998-
assert_eq!(r, 65536.0);
23998+
assert_eq!(r, 18.5);
2399923999
}
2400024000

2400124001
#[simd_test(enable = "avx512fp16")]
2400224002
const fn test_mm512_reduce_mul_ph() {
24003-
let a = _mm512_set1_ph(2.0);
24003+
let a = _mm512_set1_ph(1.2);
2400424004
let r = _mm512_reduce_mul_ph(a);
24005-
assert_eq!(r, 16777216.0);
24005+
assert_eq!(r, 342.3);
2400624006
}
2400724007

2400824008
#[simd_test(enable = "avx512fp16,avx512vl")]

0 commit comments

Comments
 (0)