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>
This commit is contained in:
Richard Henderson 2014-07-03 12:37:59 -07:00
parent 7f2e40020c
commit 7b4dde839e
1 changed files with 1 additions and 1 deletions

View File

@ -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;