diff options
| author | Yang Rong <rong.r.yang@intel.com> | 2016-05-26 13:28:46 +0800 |
|---|---|---|
| committer | Yang Rong <rong.r.yang@intel.com> | 2016-06-23 15:45:47 +0800 |
| commit | 7064e36b6be9da337b205343a64152deea36479c (patch) | |
| tree | 9b437ed8fc14205fe36699fe392097316ac614f2 | |
| parent | c3bf04240c81acf38d43989d2179172fb2f65d59 (diff) | |
| download | beignet-7064e36b6be9da337b205343a64152deea36479c.tar.gz | |
GBE: fix a patch JMPI assert.
If jmpi out of range (+/-32768), should use long jump.
Now decide the long jump in the gbe, use the GEN IR, but
one GEN IR may produce several GEN instructions, especially
long operation pre BDW. So use experiential 8000 as threshold.
But some case still out of range. So decrease the threshold to
3000. Need move it to context in the futher.
Fix bug:
https://bugs.freedesktop.org/show_bug.cgi?id=94810
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Ruiling Song <ruiling.song@intel.com>
| -rw-r--r-- | backend/src/backend/gen_insn_selection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp index d7190a05..49f8efbd 100644 --- a/backend/src/backend/gen_insn_selection.cpp +++ b/backend/src/backend/gen_insn_selection.cpp @@ -1219,7 +1219,7 @@ namespace gbe } // FIXME, this longjmp check is too hacky. We need to support instruction // insertion at code emission stage in the future. - insn->extra.longjmp = ctx.getFunction().getDistance(start, end) > 8000; + insn->extra.longjmp = ctx.getFunction().getDistance(start, end) > 3000; return insn->extra.longjmp ? 2 : 1; } |
