Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Aleksey_Y_1
Beginner
87 Views

Intel C++ Compiler produces wrong code

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
87 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
87 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