mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 14:26:17 +00:00
fix the label checking logics
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
This commit is contained in:
parent
4d75db550e
commit
ea1fcf0b44
@ -329,6 +329,7 @@ int main(int argc, char **argv)
|
|||||||
if (!entry->islabel) {
|
if (!entry->islabel) {
|
||||||
if (entry->instruction.reloc_target) {
|
if (entry->instruction.reloc_target) {
|
||||||
entry1 = entry;
|
entry1 = entry;
|
||||||
|
int found = 0;
|
||||||
do {
|
do {
|
||||||
if (entry1->islabel &&
|
if (entry1->islabel &&
|
||||||
strcmp(entry1->string,
|
strcmp(entry1->string,
|
||||||
@ -343,13 +344,14 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if (entry->instruction.header.opcode == BRW_OPCODE_ELSE)
|
if (entry->instruction.header.opcode == BRW_OPCODE_ELSE)
|
||||||
entry->instruction.bits3.if_else.pop_count = 1;
|
entry->instruction.bits3.if_else.pop_count = 1;
|
||||||
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
entry1 = entry1->next;
|
entry1 = entry1->next;
|
||||||
if (entry1 == NULL)
|
if (entry1 == NULL)
|
||||||
entry1 = compiled_program.first;
|
entry1 = compiled_program.first;
|
||||||
} while (entry1 != entry);
|
} while (entry1 != entry);
|
||||||
if (entry1 == NULL)
|
if (found == 0)
|
||||||
fprintf(stderr, "can not find lable %s\n",
|
fprintf(stderr, "can not find lable %s\n",
|
||||||
entry->instruction.reloc_target);
|
entry->instruction.reloc_target);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user