NMSIS-Core
Version 1.2.0
NMSIS-Core support for Nuclei processor-based devices
|
SIMD 8-bit Miscellaneous Instructions. More...
Macros | |
#define | __RV_SCLIP8(a, b) |
SCLIP8 (SIMD 8-bit Signed Clip Value) More... | |
#define | __RV_UCLIP8(a, b) |
UCLIP8 (SIMD 8-bit Unsigned Clip Value) More... | |
Functions | |
__STATIC_FORCEINLINE unsigned long | __RV_CLRS8 (unsigned long a) |
CLRS8 (SIMD 8-bit Count Leading Redundant Sign) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_CLO8 (unsigned long a) |
CLO8 (SIMD 8-bit Count Leading One) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_CLZ8 (unsigned long a) |
CLZ8 (SIMD 8-bit Count Leading Zero) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_KABS8 (unsigned long a) |
KABS8 (SIMD 8-bit Saturating Absolute) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_SMAX8 (unsigned long a, unsigned long b) |
SMAX8 (SIMD 8-bit Signed Maximum) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_SMIN8 (unsigned long a, unsigned long b) |
SMIN8 (SIMD 8-bit Signed Minimum) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_UMAX8 (unsigned long a, unsigned long b) |
UMAX8 (SIMD 8-bit Unsigned Maximum) More... | |
__STATIC_FORCEINLINE unsigned long | __RV_UMIN8 (unsigned long a, unsigned long b) |
UMIN8 (SIMD 8-bit Unsigned Minimum) More... | |
SIMD 8-bit Miscellaneous Instructions.
there are 10 SIMD 8-bit Miscellaneous instructions.
#define __RV_SCLIP8 | ( | a, | |
b | |||
) |
SCLIP8 (SIMD 8-bit Signed Clip Value)
Type: SIMD
Syntax:
Purpose:
Limit the 8-bit signed integer elements of a register into a signed range simultaneously.
Description:
This instruction limits the 8-bit signed integer elements stored in Rs1 into a signed integer range between 2^imm3u-1 and -2^imm3u, and writes the limited results to Rd. For example, if imm3u is 3, the 8-bit input values should be saturated between 7 and -8. If saturation is performed, set OV bit to 1.
Operations:
[in] | a | unsigned long type of value stored in a |
[in] | b | unsigned int type of value stored in b |
Definition at line 6916 of file core_feature_dsp.h.
#define __RV_UCLIP8 | ( | a, | |
b | |||
) |
UCLIP8 (SIMD 8-bit Unsigned Clip Value)
Type: SIMD
Syntax:
Purpose:
Limit the 8-bit signed elements of a register into an unsigned range simultaneously.
Description:
This instruction limits the 8-bit signed elements stored in Rs1 into an unsigned integer range between 2^imm3u-1 and 0, and writes the limited results to Rd. For example, if imm3u is 3, the 8- bit input values should be saturated between 7 and 0. If saturation is performed, set OV bit to 1.
Operations:
[in] | a | unsigned long type of value stored in a |
[in] | b | unsigned int type of value stored in b |
Definition at line 11114 of file core_feature_dsp.h.
__STATIC_FORCEINLINE unsigned long __RV_CLO8 | ( | unsigned long | a | ) |
CLO8 (SIMD 8-bit Count Leading One)
Type: SIMD
Syntax:
Purpose:
Count the number of leading one bits of the 8-bit elements of a general register.
Description:
Starting from the most significant bits of the 8-bit elements of Rs1, this instruction counts the number of leading one bits and writes the results to the corresponding 8-bit elements of Rd.
Operations:
[in] | a | unsigned long type of value stored in a |
Definition at line 917 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_CLRS8 | ( | unsigned long | a | ) |
CLRS8 (SIMD 8-bit Count Leading Redundant Sign)
Type: SIMD
Syntax:
Purpose:
Count the number of redundant sign bits of the 8-bit elements of a general register.
Description:
Starting from the bits next to the sign bits of the 8-bit elements of Rs1, this instruction counts the number of redundant sign bits and writes the result to the corresponding 8-bit elements of Rd.
Operations:
[in] | a | unsigned long type of value stored in a |
Definition at line 776 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_CLZ8 | ( | unsigned long | a | ) |
CLZ8 (SIMD 8-bit Count Leading Zero)
Type: SIMD
Syntax:
Purpose:
Count the number of leading zero bits of the 8-bit elements of a general register.
Description:
Starting from the most significant bits of the 8-bit elements of Rs1, this instruction counts the number of leading zero bits and writes the results to the corresponding 8-bit elements of Rd.
Operations:
[in] | a | unsigned long type of value stored in a |
Definition at line 1058 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_KABS8 | ( | unsigned long | a | ) |
KABS8 (SIMD 8-bit Saturating Absolute)
Type: SIMD
Syntax:
Purpose:
Get the absolute value of 8-bit signed integer elements simultaneously.
Description:
This instruction calculates the absolute value of 8-bit signed integer elements stored in Rs1 and writes the element results to Rd. If the input number is 0x80, this instruction generates 0x7f as the output and sets the OV bit to 1.
Operations:
[in] | a | unsigned long type of value stored in a |
Definition at line 1414 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_SMAX8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
SMAX8 (SIMD 8-bit Signed Maximum)
Type: SIMD
Syntax:
Purpose:
Do 8-bit signed integer elements finding maximum operations simultaneously.
Description:
This instruction compares the 8-bit signed integer elements in Rs1 with the 8-bit signed integer elements in Rs2 and selects the numbers that is greater than the other one. The selected 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 8264 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_SMIN8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
SMIN8 (SIMD 8-bit Signed Minimum)
Type: SIMD
Syntax:
Purpose:
Do 8-bit signed integer elements finding minimum operations simultaneously.
Description:
This instruction compares the 8-bit signed integer elements in Rs1 with the 8-bit signed integer elements in Rs2 and selects the numbers that is less than the other one. The selected 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 8675 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_UMAX8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
UMAX8 (SIMD 8-bit Unsigned Maximum)
Type: SIMD
Syntax:
Purpose:
Do 8-bit unsigned integer elements finding maximum operations simultaneously.
Description:
This instruction compares the 8-bit unsigned integer elements in Rs1 with the four 8- bit unsigned integer elements in Rs2 and selects the numbers that is greater than the other one. The two selected 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 12339 of file core_feature_dsp.h.
References __ASM.
__STATIC_FORCEINLINE unsigned long __RV_UMIN8 | ( | unsigned long | a, |
unsigned long | b | ||
) |
UMIN8 (SIMD 8-bit Unsigned Minimum)
Type: SIMD
Syntax:
Purpose:
Do 8-bit unsigned integer elements finding minimum operations simultaneously.
Description:
This instruction compares the 8-bit unsigned integer elements in Rs1 with the 8-bit unsigned integer elements in Rs2 and selects the numbers that is less than the other one. The selected 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 12417 of file core_feature_dsp.h.
References __ASM.