I got an issue with a Floating Point Exception.
In my code, there are two floating point divisions.
And clang-6 decides to use an SSE division (divps  %xmm0,%xmm1) to compute them.

Fine so far.

But the two unused lanes contain zeros, triggering the FPE.

Isn't it the compiler's responsibility to make sure all lanes in the
SIMD vector have sane values, even if not all lanes are used?

If not, enabling Floating Point Exceptions would make no sense for any
clang generated code.

All the details are listed here:

https://stackoverflow.com/questions/53982412/perfectly-fine-division-throws-floating-point-exception

-- 
Owner/Director of Game Studio Abraham Stolk Inc.
Vancouver BC, Canada
b.st...@gmail.com
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to