From c3f6f71df382eaaaac4440a91e6f310d03fb8da6 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Thu, 6 Jan 2000 03:07:20 +0000 Subject: import gdb-2000-01-05 snapshot --- sim/d10v/d10v_sim.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sim/d10v/d10v_sim.h') diff --git a/sim/d10v/d10v_sim.h b/sim/d10v/d10v_sim.h index 130aed9..5cf43e2 100644 --- a/sim/d10v/d10v_sim.h +++ b/sim/d10v/d10v_sim.h @@ -432,7 +432,8 @@ enum #define INC_ADDR(x,i) \ do \ { \ - if (PSW_MD && GPR (x) == (MOD_E & ~((i) - 1))) \ + int test_i = i < 0 ? i : ~((i) - 1); \ + if (PSW_MD && GPR (x) == (MOD_E & test_i)) \ SET_GPR (x, MOD_S); \ else \ SET_GPR (x, GPR (x) + (i)); \ -- cgit v1.1