Float-explorer
A tool that generates very precise assembly programs for exploring edge-case floating-point behavior on a processor, without having to bully the compiler into producing the desired code. It targets obscure semantics such as the multiple possible definitions of denormal flushing, and can be used to check whether an emulator actually emulates floating-point behavior correctly rather than silently delegating to host hardware with slightly different definitions.
What it addresses
Compilers are hard to coax into generating the exact assembly needed to test obscure floating-point behaviors, and emulators may implement floating-point incorrectly by delegating to hardware with subtly different semantics.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Float-explorer
A tool that generates very precise assembly programs for exploring edge-case floating-point behavior on a processor, without having to bully the compiler into producing the desired code. It targets obscure semantics such as the multiple possible definitions of denormal flushing, and can be used to check whether an emulator actually emulates floating-point behavior correctly rather than silently delegating to host hardware with slightly different definitions.
Problem: Compilers are hard to coax into generating the exact assembly needed to test obscure floating-point behaviors, and emulators may implement floating-point incorrectly by delegating to hardware with subtly different semantics.
Audience: Developers who want to probe processor floating-point behavior without fighting the compiler, and emulator developers checking FP semantics.
Posted by @jcranmer · Original source ↗
Source text · @jcranmer · · Source ↗
Float-explorer, a tool for generating very precise assembly programs to explore the darkest recesses of floating-point behavior on your processor without having to bully the compiler into generating the code for you.