target-alpha: Clean up arithmetic traps.

Replace the EXCP_ARITH_OVERFLOW placeholder with the complete
set of bits from the EXC_SUM IPR.  Use them in the existing
places where we raise arithmetic exceptions.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Richard Henderson 2010-01-04 11:24:04 -08:00 committed by Aurelien Jarno
parent dad081ee69
commit 866be65dfd
2 changed files with 14 additions and 10 deletions

View file

@ -450,9 +450,13 @@ enum {
};
/* Arithmetic exception */
enum {
EXCP_ARITH_OVERFLOW,
};
#define EXC_M_IOV (1<<16) /* Integer Overflow */
#define EXC_M_INE (1<<15) /* Inexact result */
#define EXC_M_UNF (1<<14) /* Underflow */
#define EXC_M_FOV (1<<13) /* Overflow */
#define EXC_M_DZE (1<<12) /* Division by zero */
#define EXC_M_INV (1<<11) /* Invalid operation */
#define EXC_M_SWC (1<<10) /* Software completion */
enum {
IR_V0 = 0,