[LLVMdev] Floating-Point Overflow check
John McCall
rjmccall at apple.com
Mon Jul 26 10:04:16 PDT 2010
On Jul 26, 2010, at 4:12 AM, Steffen Geißinger wrote:
> i know that the result is infinte, but there are sill flags in the FPU which indicate that an overflow, underflow or div by zero occured.
> So isn't there an easy way to check if one of those flags is set?
I don't think so; we probably don't select those instructions at all. I'm not sure what the best way to select them would be, to be honest; maybe a processor-specific intrinsic. I'd suggest filing a bug.
John.
More information about the llvm-dev
mailing list