NMSIS-Core
Version 1.2.0
NMSIS-Core support for Nuclei processor-based devices
|
SIMD 8-bit Compare Instructions. More...
Functions | |
__STATIC_FORCEINLINE unsigned long | __RV_CMPEQ8 (unsigned long a, unsigned long b) |
CMPEQ8 (SIMD 8-bit Integer Compare Equal) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_SCMPLE8 (unsigned long a, unsigned long b) |
SCMPLE8 (SIMD 8-bit Signed Compare Less Than & Equal) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_SCMPLT8 (unsigned long a, unsigned long b) |
SCMPLT8 (SIMD 8-bit Signed Compare Less Than) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_UCMPLE8 (unsigned long a, unsigned long b) |
UCMPLE8 (SIMD 8-bit Unsigned Compare Less Than & Equal) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_UCMPLT8 (unsigned long a, unsigned long b) |
UCMPLT8 (SIMD 8-bit Unsigned Compare Less Than) More... | |
SIMD 8-bit Compare Instructions.
there are 5 SIMD 8-bit Compare instructions.
__STATIC_FORCEINLINE unsigned long __RV_CMPEQ8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
CMPEQ8 (SIMD 8-bit Integer Compare Equal)
Type: SIMD
Syntax:
Purpose:
Do 8-bit integer elements equal comparisons simultaneously.
Description:
This instruction compares the 8-bit integer elements in Rs1 with the 8-bit integer elements in Rs2 to see if they are equal. If they are equal, the result is 0xFF; otherwise, the result is 0x0. The 8-bit element comparison results are written to Rd.
Note:
This instruction can be used for either signed or unsigned numbers.
Operations:
[in] | a | unsigned long type of value stored in a |
[in] | b | unsigned long type of value stored in b |
Definition at line 1194 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_SCMPLE8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
SCMPLE8 (SIMD 8-bit Signed Compare Less Than & Equal)
Type: SIMD
Syntax:
Purpose:
Do 8-bit signed integer elements less than & equal comparisons simultaneously.
Description:
This instruction compares the 8-bit signed integer elements in Rs1 with the 8-bit signed integer elements in Rs2 to see if the one in Rs1 is less than or equal to the one in Rs2. If it is true, the result is 0xFF; otherwise, the result is 0x0. The element comparison results are written to Rd
Operations:
[in] | a | unsigned long type of value stored in a |
[in] | b | unsigned long type of value stored in b |
Definition at line 7055 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_SCMPLT8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
SCMPLT8 (SIMD 8-bit Signed Compare Less Than)
Type: SIMD
Syntax:
Purpose:
Do 8-bit signed integer elements less than comparisons simultaneously.
Description:
This instruction compares the 8-bit signed integer elements in Rs1 with the 8-bit signed integer elements in Rs2 to see if the one in Rs1 is less than the one in Rs2. If it is true, the result is 0xFF; otherwise, the result is 0x0. The element comparison results are written to Rd.
Operations:
[in] | a | unsigned long type of value stored in a |
[in] | b | unsigned long type of value stored in b |
Definition at line 7134 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_UCMPLE8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
UCMPLE8 (SIMD 8-bit Unsigned Compare Less Than & Equal)
Type: SIMD
Syntax:
Purpose:
Do 8-bit unsigned integer elements less than & equal comparisons simultaneously.
Description:
This instruction compares the 8-bit unsigned integer elements in Rs1 with the 8-bit unsigned integer elements in Rs2 to see if the one in Rs1 is less than or equal to the one in Rs2. If it is true, the result is 0xFF; otherwise, the result is 0x0. The four comparison results are written to Rd.
Operations:
[in] | a | unsigned long type of value stored in a |
[in] | b | unsigned long type of value stored in b |
Definition at line 11254 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_UCMPLT8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
UCMPLT8 (SIMD 8-bit Unsigned Compare Less Than)
Type: SIMD
Syntax:
Purpose:
Do 8-bit unsigned integer elements less than comparisons simultaneously.
Description:
This instruction compares the 8-bit unsigned integer elements in Rs1 with the 8-bit unsigned integer elements in Rs2 to see if the one in Rs1 is less than the one in Rs2. If it is true, the result is 0xFF; otherwise, the result is 0x0. The element comparison results are written to Rd.
Operations:
[in] | a | unsigned long type of value stored in a |
[in] | b | unsigned long type of value stored in b |
Definition at line 11333 of file core_feature_dsp.h.
References __ASM.