Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Intel C++ Compiler produces wrong code

Aleksey_Y_1
Beginner
362 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
362 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?

0 Kudos
Aleksey_Y_1
Beginner
362 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.

0 Kudos
Reply