Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

Intel C++ Compiler produces wrong code

$
0
0

Hello,

I've got strange behavior of Intel C++ Compiler on linux. The problem is reproduce in online compiler godbolt on a small part. Inv value should be inverse of work, but with Intel it is not the case.

Problem solves if I add "-fp-model except".

I seems that lines 64-67 confuse compiler. There are no such lines there in  work code, but the problem is the same. 

https://godbolt.org/z/p04TXC

 

Thanks

Aleksey


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>