Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7679 Discussions

Intel C++ Compiler produces wrong code

Aleksey_Y_1
Beginner
183 Views

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

0 Kudos
2 Replies
Viet_H_Intel
Moderator
183 Views

I've reported this bug ( internal #CMPLRIL0-31929) to the Developer. In the mean time, can you use -fp-model except for a workaround?

Aleksey_Y_1
Beginner
183 Views

Thanks for report, I hope it will be fixed in near updates.

Yes, but it's hard to say if it will be any faster than gcc. Requires some investigations.

Reply