intel/compiler: Print hex representation along with floating point value
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 24 Oct 2018 20:27:27 +0000 (13:27 -0700)
committerSamuel Iglesias Gonsalvez <correo@samuelig.es>
Fri, 26 Oct 2018 04:41:08 +0000 (06:41 +0200)
commitd15fa248605ca5c44f042a80a670088a83fb33fe
treefeeb55b4b192c9467231f88e541cf573bc1f6758
parent07a00a8729d709a4c43c828c64242c226607f09a
intel/compiler: Print hex representation along with floating point value

While encoding the immediate floating point values in instruction we use
values upto precision 9, but while disassembling, we print precision to
6 places, which round up the value and gives wrong interpretation for
encoded immediate constant.

To avoid misinterpretation of encoded immediate values in instruction
and disassembled output, print hex representation along with floating
point value which can be used by assembler in future.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/compiler/brw_disasm.c