diff options
author | Jose Maria Casanova Crespo <[email protected]> | 2017-07-01 08:11:58 +0200 |
---|---|---|
committer | Jose Maria Casanova Crespo <[email protected]> | 2017-12-06 08:57:18 +0100 |
commit | ac8d4734f695b718ae072c2ad961a2cc546b21e0 (patch) | |
tree | c24505b7b512fcb603c5738acef6fc9986d1f0e7 /src/intel/compiler/brw_eu.h | |
parent | 5d5ee507fb4a385f98ba19bd901ce4e3aca7def4 (diff) |
i965: Add support for control register
Control register cr0 in i965 can be used to change the rounding modes
in 32-bit to 16-bit floating-point conversions.
From intel Skylake PRM, vol 07, section "Register and Tegister Regions",
subsection "Control Register" (page 754):
"Subregister cr0.0:ud contains normal operation control fields such as the
floating-point mode ... "
Floating-point Rounding mode is changed at bits 5:4 of cr0.0:
"Rounding Mode. This field specifies the FPU rounding mode. It is
initialized by Thread Dispatch."
00b = Round to Nearest or Even (RTNE)
01b = Round Up, toward +inf (RU)
10b = Round Down, toward -inf (RD)
11b = Round Toward Zero (RTZ)"
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu.h')
0 files changed, 0 insertions, 0 deletions