Merge pull request #1991 from usamoi/fp16-transmute
remove fp16 target feature from some vreinterpret intrinsics
This commit is contained in:
commit
70a07c91de
3 changed files with 104 additions and 106 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue