Merge pull request #1991 from usamoi/fp16-transmute

remove fp16 target feature from some vreinterpret intrinsics
This commit is contained in:
Folkert de Vries 2026-01-28 11:37:09 +00:00 committed by GitHub
commit 70a07c91de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 104 additions and 106 deletions

View file

@ -24010,16 +24010,16 @@ mod tests {
#[simd_test(enable = "avx512fp16,avx512vl")]
const fn test_mm256_reduce_mul_ph() {
let a = _mm256_set1_ph(2.0);
let a = _mm256_set1_ph(1.2);
let r = _mm256_reduce_mul_ph(a);
assert_eq!(r, 65536.0);
assert_eq!(r, 18.5);
}
#[simd_test(enable = "avx512fp16")]
const fn test_mm512_reduce_mul_ph() {
let a = _mm512_set1_ph(2.0);
let a = _mm512_set1_ph(1.2);
let r = _mm512_reduce_mul_ph(a);
assert_eq!(r, 16777216.0);
assert_eq!(r, 342.3);
}
#[simd_test(enable = "avx512fp16,avx512vl")]

View file

@ -8911,7 +8911,6 @@ intrinsics:
- *neon-v7
- FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]]
- FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]]
- *neon-fp16
- *neon-not-arm-stable-fp16
- *neon-cfg-arm-unstable
- *target-not-arm64ec
@ -8975,7 +8974,6 @@ intrinsics:
- *neon-v8
- FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]]
- FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]]
- *neon-fp16
- *neon-not-arm-stable-fp16
- *neon-cfg-arm-unstable
- *target-not-arm64ec