Matt Arsenault dd81810554 clang: Emit nofpclass(nan inf) for -ffinite-math-only
Set this on any source level floating-point type argument,
return value, call return or outgoing parameter which is lowered
to a valid IR type for the attribute. Currently this isn't
applied to emitted intrinsics since those don't go through
ABI code.
2023-03-15 01:13:08 -04:00

5 lines
95 B
LLVM

define float @declared_as_nonan(float %arg) {
%add = fadd float %arg, 1.0
ret float %add
}