SIMD ISAReturn TypeNameArgumentsInstruction Group
sveboolsvptest_any(svbool_t pg, svbool_t op)Predication / Testing
Description
Test whether any active element is true
Architectures
A64

Operation

Return true if at least one element is active and if at least one active element of op is true.

Although the function is named after the PTEST instruction, the compiler may be able to avoid an explicit PTEST by reusing flags from a previous instruction.