Nios II Custom Instruction User Guide

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

6.6.3.2. Nios II FPH2 Pragmas

GCC supports pragmas located in source code files to override the -mcustom command-line options. The pragmas affect the entire source file.

The following pragma tells GCC to call custom instruction N (where N is a decimal integer from 0 to 255) to implement the specified floating point operation:
#pragma GCC target(“custom-<operation>=N”) 
The following pragma tells GCC to use the software emulation instead of the custom instruction to implement the specified floating point operation:
#pragma GCC targer(“no-custom-<operation>”)
Note: There is no pragma support for the round operation.