Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHmmm.... Either:
1) your nios has the fpu instructions. 2) the compiler is optimising out the arithmetic - which it can do for the above code. 3) there are no custom instructions at all, and the cpu takes an 'unknown instruction' trap, and some code emulates them. (I'm not sure this is possible at all) Try with 'volatile float legal;' which will force the compiler to do the memory accesses.