target-alpha: Fix cvttq vs large integers
authorRichard Henderson <rth@twiddle.net>
Thu, 3 Jul 2014 19:36:34 +0000 (12:36 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 May 2015 20:03:46 +0000 (13:03 -0700)
commit7f2e40020cfc827f7e59670f8c400b0b9a704481
tree330630de3a2f00f005b264828a5f7e2947f0f773
parentc24a8a0b6dad5a33d84f5fb846edb28c43312c71
target-alpha: Fix cvttq vs large integers

The range +- 2**63 - 2**64 was returning the wrong truncated
result.  We also incorrectly signaled overflow for -2**63.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-alpha/fpu_helper.c