NMSIS-Core  Version 1.2.0
NMSIS-Core support for Nuclei processor-based devices
OV (Overflow) flag Set/Clear Instructions

OV (Overflow) flag Set/Clear Instructions. More...

Functions

__STATIC_FORCEINLINE void __RV_CLROV (void)
 CLROV (Clear OV flag) More...
 
__STATIC_FORCEINLINE unsigned long __RV_RDOV (void)
 RDOV (Read OV flag) More...
 

Detailed Description

OV (Overflow) flag Set/Clear Instructions.

The following table lists the user instructions related to Overflow (OV) flag manipulation. there are 2 OV (Overflow) flag Set/Clear Instructions

Function Documentation

◆ __RV_CLROV()

__STATIC_FORCEINLINE void __RV_CLROV ( void  )

CLROV (Clear OV flag)

Type: DSP

Syntax:

CLROV # pseudo mnemonic

Purpose:
This pseudo instruction is an alias to CSRRCI x0, ucode, 1 instruction.

Definition at line 731 of file core_feature_dsp.h.

732 {
733  __ASM volatile("clrov ");
734 }

References __ASM.

◆ __RV_RDOV()

__STATIC_FORCEINLINE unsigned long __RV_RDOV ( void  )

RDOV (Read OV flag)

Type: DSP

Syntax:

RDOV Rd # pseudo mnemonic

Purpose:
This pseudo instruction is an alias to CSRR Rd, ucode instruction which maps to the real instruction of CSRRS Rd, ucode, x0.

Returns
value stored in unsigned long type

Definition at line 6574 of file core_feature_dsp.h.

6575 {
6576  unsigned long result;
6577  __ASM volatile("rdov %0" : "=r"(result));
6578  return result;
6579 }

References __ASM.

__ASM
#define __ASM
Pass information from the compiler to the assembler.
Definition: nmsis_gcc.h:55