Skip to content

Commit e3cbc64

Browse files
committed
add note on platform intrinsics
1 parent c64f06d commit e3cbc64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

text/0000-float-semantics.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ The sign bit is left unspecified, i.e., there are two canonical NaNs (and both a
259259

260260
- Are there any other targets with floating-point trouble?
261261
- What exactly is the set of "extra" NaNs for all remaining targets?
262+
- To what extend does this specification apply to platform intrinsics?
263+
On the one hand, it seems reasonable to expect platform intrinsics to have the behavior of the platform instructions.
264+
On the other hand, we implement some platform intrinsics with the portable LLVM `simd` intrinsics, and those are subject to the NaN-non-determinism described above.
265+
So the current de-facto semantics of at least some platform intrinsics is that they do *not* match what the platform does.
262266

263267
# Future possibilities
264268
[future-possibilities]: #future-possibilities

0 commit comments

Comments
 (0)