mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 14:56:18 +00:00
Restrict type of relativelocation2 to int
Original rule set it to EXP | NUMBER, then YYERROR if it is NUMBER. This patch set it directly to EXP, restricting its type to int.
This commit is contained in:
parent
ccd1721190
commit
1f9a4d71e8
@ -2136,13 +2136,8 @@ relativelocation: imm32
|
|||||||
;
|
;
|
||||||
|
|
||||||
relativelocation2:
|
relativelocation2:
|
||||||
imm32
|
exp
|
||||||
{
|
{
|
||||||
if ($1.r != imm32_d) {
|
|
||||||
fprintf (stderr,
|
|
||||||
"error: non-int location representation\n");
|
|
||||||
YYERROR;
|
|
||||||
}
|
|
||||||
memset (&$$, '\0', sizeof ($$));
|
memset (&$$, '\0', sizeof ($$));
|
||||||
$$.reg_file = BRW_IMMEDIATE_VALUE;
|
$$.reg_file = BRW_IMMEDIATE_VALUE;
|
||||||
$$.reg_type = BRW_REGISTER_TYPE_D;
|
$$.reg_type = BRW_REGISTER_TYPE_D;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user