diff options
| author | Richard Henderson | 2014-07-08 19:14:09 +0200 |
|---|---|---|
| committer | Richard Henderson | 2015-05-18 22:03:47 +0200 |
| commit | 4ed069ab5334a495b49d0704795524fa34e8dbfc (patch) | |
| tree | 9b8a95a1f21e913c01269d05f208fbe6d6880120 /target-alpha | |
| parent | target-alpha: Raise EXC_M_INV properly for fp inputs (diff) | |
| download | qemu-4ed069ab5334a495b49d0704795524fa34e8dbfc.tar.gz qemu-4ed069ab5334a495b49d0704795524fa34e8dbfc.tar.xz qemu-4ed069ab5334a495b49d0704795524fa34e8dbfc.zip | |
target-alpha: Suppress underflow from CVTTQ if DNZ
I.e. respect flush_inputs_to_zero.
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-alpha')
| -rw-r--r-- | target-alpha/fpu_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-alpha/fpu_helper.c b/target-alpha/fpu_helper.c index ea1f2e22b9..fa4401d4d6 100644 --- a/target-alpha/fpu_helper.c +++ b/target-alpha/fpu_helper.c @@ -452,7 +452,7 @@ static uint64_t do_cvttq(CPUAlphaState *env, uint64_t a, int roundmode) frac = a & 0xfffffffffffffull; if (exp == 0) { - if (unlikely(frac != 0)) { + if (unlikely(frac != 0) && !env->fp_status.flush_inputs_to_zero) { goto do_underflow; } } else if (exp == 0x7ff) { |
