summaryrefslogtreecommitdiff
path: root/assembler/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'assembler/main.c')
-rw-r--r--assembler/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assembler/main.c b/assembler/main.c
index f1d78d07..05ca337c 100644
--- a/assembler/main.c
+++ b/assembler/main.c
@@ -457,7 +457,7 @@ int main(int argc, char **argv)
// this is a branch instruction with one offset argument
int offset = reloc->first_reloc_offset;
/* bspec: Unlike other flow control instructions, the offset used by JMPI is relative to the incremented instruction pointer rather than the IP value for the instruction itself. */
-
+
int is_jmpi = inst->header.opcode == BRW_OPCODE_JMPI; // target relative to the post-incremented IP, so delta == 1 if JMPI
if(is_jmpi)
offset --;