From 6171c61e0c13d563d5aaad85c74940ceaaf6afa9 Mon Sep 17 00:00:00 2001 From: Homer Hsing Date: Mon, 17 Sep 2012 16:11:49 +0800 Subject: [PATCH] Use bits3.if_else.jump_count instead of bits3.ud for readability --- assembler/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assembler/src/main.c b/assembler/src/main.c index 4e2117e3..ee294124 100644 --- a/assembler/src/main.c +++ b/assembler/src/main.c @@ -330,9 +330,9 @@ int main(int argc, char **argv) entry1->inst_offset - entry->inst_offset; int delta = (entry->instruction.header.opcode == BRW_OPCODE_JMPI ? 1 : 0); if (gen_level >= 5) - entry->instruction.bits3.ud = 2 * (offset - delta); + entry->instruction.bits3.if_else.jump_count = 2 * (offset - delta); // bspec: the jump distance in number of eight-byte units else - entry->instruction.bits3.ud = offset - delta; + entry->instruction.bits3.if_else.jump_count = offset - delta; if (entry->instruction.header.opcode == BRW_OPCODE_ELSE) entry->instruction.bits3.if_else.pop_count = 1;