Lines 1-5
Link Here
|
1 |
--- backend/src/backend/gen_insn_selection.cpp.orig 2015-08-26 11:57:48.961363000 +0200 |
1 |
--- backend/src/backend/gen_insn_selection.cpp.orig 2015-08-26 11:57:48.961363000 +0200 |
2 |
+++ backend/src/backend/gen_insn_selection.cpp 2015-08-26 11:58:15.326657000 +0200 |
2 |
+++ backend/src/backend/gen_insn_selection.cpp 2015-08-26 11:58:15.326657000 +0200 |
|
|
3 |
@@ -1153,7 +1153,7 @@ namespace gbe |
4 |
SelectionInstruction *insn = this->appendInsn(SEL_OP_JMPI, 0, 1); |
5 |
insn->src(0) = src; |
6 |
insn->index = index.value(); |
7 |
- insn->extra.longjmp = abs(index - origin) > 800; |
8 |
+ insn->extra.longjmp = (index >= origin ? index - origin : origin - index) > 800; |
9 |
return insn->extra.longjmp ? 2 : 1; |
10 |
} |
11 |
|
3 |
@@ -1752,11 +1752,11 @@ namespace gbe |
12 |
@@ -1752,11 +1752,11 @@ namespace gbe |
4 |
|
13 |
|
5 |
// Boiler plate to initialize the selection library at c++ pre-main |
14 |
// Boiler plate to initialize the selection library at c++ pre-main |