vcgt_f32ADD TO COMPARE ADDED TO COMPARE
Arm 64-bit (64 bits)/ NEON
View official documentation
Location:
Comparison
>
Vector Compare Greater Than, return Vector Mask
Supported Architectures: v7, A32, A64
Supported Architectures: v7, A32, A64
Purpose:
Compare signed Greater than (vector). This instruction compares each vector element in the first source SIMD&FP register with the corresponding vector element in the second source SIMD&FP register and if the first signed integer value is greater than the second signed integer value sets every bit of the corresponding vector element in the destination SIMD&FP register to one, otherwise sets every bit of the corresponding vector element in the destination SIMD&FP register to zero.
Result:
uint32x2_t
Example:
#include <arm_neon.h>
#include <stdio.h>
int main() {
float32x2_t a = vdup_n_f32(3.5f);
float32x2_t b = vdup_n_f32(2.0f);
uint32x2_t result = vcgt_f32(a, b);
uint32_t *res = (uint32_t*)&result;
for(int i = 0; i < 2; i++)
printf("%u ", res[i]);
return 0;
}
Prototypes
Assembly Instruction:
FCMGT
Usage:
uint32x2_t result =
vcgt_f32(
float32x2_t a, float32x2_t b
)
DB statistics
| SIMD Engines: | 5 |
| C Intrinsics: | 10702 |
| NEON: | 4232 |
| AVX2: | 462 |
| AVX512: | 4955 |
| SSE4.2: | 652 |
| VSX: | 401 |