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_build.c | |
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_build.c')
-rw-r--r-- | src/amd/llvm/ac_llvm_build.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 87adf2b4432..d9ece7049c7 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -73,6 +73,7 @@ ac_llvm_context_init(struct ac_llvm_context *ctx, ctx->family = family; ctx->wave_size = wave_size; ctx->ballot_mask_bits = ballot_mask_bits; + ctx->float_mode = float_mode; ctx->module = ac_create_module(wave_size == 32 ? compiler->tm_wave32 : compiler->tm, ctx->context); |