projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d538dfc
)
Parse negative integers for imm32s, and don't exceed the IP count width field.
author
Eric Anholt
<eric@anholt.net>
Thu, 31 Aug 2006 22:59:14 +0000
(15:59 -0700)
committer
Damien Lespiau
<damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:24 +0000
(15:54 +0000)
This fixes the while test.
assembler/src/gram.y
patch
|
blob
|
history
diff --git
a/assembler/src/gram.y
b/assembler/src/gram.y
index
2a4b05f
..
64b7336
100644
(file)
--- a/
assembler/src/gram.y
+++ b/
assembler/src/gram.y
@@
-1010,7
+1010,7
@@
relativelocation: imm32
$$.reg_file = BRW_IMMEDIATE_VALUE;
$$.reg_type = BRW_REGISTER_TYPE_D;
- $$.imm32 =
$1
;
+ $$.imm32 =
(int)$1 & 0x0000ffff
;
}
;
@@
-1151,6
+1151,7
@@
writemask_w: /* empty */ { $$ = 0; }
/* 1.4.11: Immediate values */
imm32: INTEGER { $$ = $1; }
+ | MINUS INTEGER { $$ = -$2; }
| NUMBER { $$ = $1; }
;