diff options
author | Richard Henderson <rth@twiddle.net> | 2014-07-03 12:37:59 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-05-18 13:03:46 -0700 |
commit | 7b4dde839e86ca6c254d4e3cd28260e9d668afb5 (patch) | |
tree | d047288453e24f17f34b12025a2108d7b58cf8d9 /target-alpha | |
parent | 7f2e40020cfc827f7e59670f8c400b0b9a704481 (diff) |
target-alpha: Fix cvttq vs inf
We should raise INV for infinities as well, not OVR+INE.
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 9449c57243..db523fbc30 100644 --- a/target-alpha/fpu_helper.c +++ b/target-alpha/fpu_helper.c @@ -444,7 +444,7 @@ static uint64_t do_cvttq(CPUAlphaState *env, uint64_t a, int roundmode) goto do_underflow; } } else if (exp == 0x7ff) { - exc = (frac ? FPCR_INV : FPCR_IOV | FPCR_INE); + exc = FPCR_INV; } else { /* Restore implicit bit. */ frac |= 0x10000000000000ull; |