Skip to content

Commit 1044810

Browse files
lu-zeroAmanieu
authored andcommitted
Add vec_any_out
1 parent 1cb4b0a commit 1044810

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,6 +2437,14 @@ pub unsafe fn vec_any_numeric(a: vector_float) -> bool {
24372437
vcmpgefp_p(1, a, a) != 0
24382438
}
24392439

2440+
/// Any Element Out of Bounds
2441+
#[inline]
2442+
#[target_feature(enable = "altivec")]
2443+
#[cfg_attr(test, assert_instr("vcmpeqfp."))]
2444+
pub unsafe fn vec_any_out(a: vector_float) -> bool {
2445+
vcmpeqfp_p(1, a, a) != 0
2446+
}
2447+
24402448
#[cfg(target_endian = "big")]
24412449
mod endian {
24422450
use super::*;

0 commit comments

Comments
 (0)