From 984d680ad96fec35780d4a0de5404c681b9a3948 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 10 Jan 2014 17:49:12 +0800 Subject: [PATCH] GBE: fixed a long related bug. We need to consider the situation that the 64 bit virtual register is crossing two GRFs. Signed-off-by: Zhigang Gong Reviewed-by: "Yang, Rong R" --- backend/src/backend/gen_register.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/backend/gen_register.hpp b/backend/src/backend/gen_register.hpp index 73d8ffa..57c78d9 100644 --- a/backend/src/backend/gen_register.hpp +++ b/backend/src/backend/gen_register.hpp @@ -270,6 +270,8 @@ namespace gbe INLINE GenRegister top_half(void) const { GenRegister r = bottom_half(); r.subnr += 4; + r.nr += r.subnr / 32; + r.subnr %= 32; return r; } -- 2.7.4