diff options
author | Samuel Pitoiset <[email protected]> | 2019-10-14 15:36:37 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-10-18 16:55:51 +0200 |
commit | 7dfb15fff1d765689353419c0a0ac9c96786b021 (patch) | |
tree | e2aed54dbc9f20c0aaf5382fa358ee1cbfa08021 /src/amd/llvm/ac_llvm_util.h | |
parent | d94bd4e512e783c823516da1efe35335fee74f5b (diff) |
ac/llvm: add AC_FLOAT_MODE_ROUND_TO_ZERO
Because some instructions will be optimized by the backend compiler,
the driver has to manually flush to zero to keep the result exact.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/llvm/ac_llvm_util.h')
-rw-r--r-- | src/amd/llvm/ac_llvm_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/llvm/ac_llvm_util.h b/src/amd/llvm/ac_llvm_util.h index 60c9a17e447..a864f524fbe 100644 --- a/src/amd/llvm/ac_llvm_util.h +++ b/src/amd/llvm/ac_llvm_util.h @@ -73,6 +73,7 @@ enum ac_float_mode { AC_FLOAT_MODE_DEFAULT, AC_FLOAT_MODE_NO_SIGNED_ZEROS_FP_MATH, AC_FLOAT_MODE_UNSAFE_FP_MATH, + AC_FLOAT_MODE_DENORM_FLUSH_TO_ZERO, }; /* Per-thread persistent LLVM objects. */ |