target-alpha: Fix integer overflow checking insns
commit4d1628e832dfc6ec02b0d196f6cc250aaa7bf3b3
authorRichard Henderson <rth@twiddle.net>
Thu, 3 Jul 2014 20:18:26 +0000 (3 13:18 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 May 2015 20:03:47 +0000 (18 13:03 -0700)
tree9db81b4c7e9833618daaeaa4f81bdb1ee848cf88
parent7b4dde839e86ca6c254d4e3cd28260e9d668afb5
target-alpha: Fix integer overflow checking insns

We need to write the result to the destination register before
raising any exception.  Thus inline the code for each insn, and
check for any exception after we're done.

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