NMSIS-Core
Version 1.2.0
NMSIS-Core support for Nuclei processor-based devices
|
SIMD 16-bit Compare Instructions. More...
Functions | |
__STATIC_FORCEINLINE unsigned long | __RV_CMPEQ16 (unsigned long a, unsigned long b) |
CMPEQ16 (SIMD 16-bit Integer Compare Equal) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_SCMPLE16 (unsigned long a, unsigned long b) |
SCMPLE16 (SIMD 16-bit Signed Compare Less Than & Equal) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_SCMPLT16 (unsigned long a, unsigned long b) |
SCMPLT16 (SIMD 16-bit Signed Compare Less Than) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_UCMPLE16 (unsigned long a, unsigned long b) |
UCMPLE16 (SIMD 16-bit Unsigned Compare Less Than & Equal) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_UCMPLT16 (unsigned long a, unsigned long b) |
UCMPLT16 (SIMD 16-bit Unsigned Compare Less Than) More... | |
SIMD 16-bit Compare Instructions.
there are 5 SIMD 16-bit Compare instructions.
__STATIC_FORCEINLINE unsigned long __RV_CMPEQ16 | ( | unsigned long | a, |
unsigned long | b | ||
) |
CMPEQ16 (SIMD 16-bit Integer Compare Equal)
Type: SIMD
Syntax:
Purpose:
Do 16-bit integer elements equal comparisons simultaneously.
Description:
This instruction compares the 16-bit integer elements in Rs1 with the 16-bit integer elements in Rs2 to see if they are equal. If they are equal, the result is 0xFFFF; otherwise, the result is 0x0. The 16-bit element comparison results are written to Rt.
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 1236 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_SCMPLE16 | ( | unsigned long | a, |
unsigned long | b | ||
) |
SCMPLE16 (SIMD 16-bit Signed Compare Less Than & Equal)
Type: SIMD
Syntax:
Purpose:
Do 16-bit signed integer elements less than & equal comparisons simultaneously.
Description:
This instruction compares the 16-bit signed integer elements in Rs1 with the 16-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 0xFFFF; 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 7095 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_SCMPLT16 | ( | unsigned long | a, |
unsigned long | b | ||
) |
SCMPLT16 (SIMD 16-bit Signed Compare Less Than)
Type: SIMD
Syntax:
Purpose:
Do 16-bit signed integer elements less than comparisons simultaneously.
Description:
This instruction compares the 16-bit signed integer elements in Rs1 with the two 16- 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 0xFFFF; 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 7173 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_UCMPLE16 | ( | unsigned long | a, |
unsigned long | b | ||
) |
UCMPLE16 (SIMD 16-bit Unsigned Compare Less Than & Equal)
Type: SIMD
Syntax:
Purpose:
Do 16-bit unsigned integer elements less than & equal comparisons simultaneously.
Description:
This instruction compares the 16-bit unsigned integer elements in Rs1 with the 16-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 0xFFFF; 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 11294 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_UCMPLT16 | ( | unsigned long | a, |
unsigned long | b | ||
) |
UCMPLT16 (SIMD 16-bit Unsigned Compare Less Than)
Type: SIMD
Syntax:
Purpose:
Do 16-bit unsigned integer elements less than comparisons simultaneously.
Description:
This instruction compares the 16-bit unsigned integer elements in Rs1 with the 16-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 0xFFFF; 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 11372 of file core_feature_dsp.h.
References __ASM.