Nios II Custom Instruction User Guide

ID 683242
Date 4/27/2020
Public
Document Table of Contents

7.3.3. Software Implementation for FPH1

The software uses #pragma directives to compare hardware and software implementations of the floating point instructions.

The following pragmas direct the Nios II compiler to ignore the FPH1 custom instructions and generate software implementations:

  • #pragma no_custom_fadds—forces software implementation of floating point add
  • #pragma no_custom_fsubs—forces software implementation of floating point subtract
  • #pragma no_custom_fmuls—forces software implementation of floating point multiply
  • #pragma no_custom_fdivs—forces software implementation of floating point divide

The scope of these pragmas is the entire C file.