Gwenole Beauchesne
8aa952873c
Add initial support for Haswell.
...
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2013-03-04 15:54:35 +00:00
Homer Hsing
a7b1c09d18
Support subroutine instructions, CALL & RET
2013-03-04 15:54:33 +00:00
Homer Hsing
b0b540f02a
Reduce replicative code in gram.y by reloc_target field in src_operand
...
Bspec says JIP and UIP should be the source operands. It is better if
src_operand has a field "reloc_target" according to bspec.
The replicative code in JMPI and branchloop rules can be merged into one.
2013-03-04 15:54:33 +00:00
Homer Hsing
ccd1721190
Rewrite label matching code. Collect labels in a linked list.
...
Label matching is faster because of searching only in a small list,
rather than searching a label in all instructions.
2013-03-04 15:54:33 +00:00
Homer Hsing
868cbf7dc5
Add a generic hash table algorithm. Reuse for declared_reg_table and label_table in the future.
...
Rewrite find_register() and insert_register(). The hash table code
has been extracted. We may use those code for label table in the future.
2013-03-04 15:54:32 +00:00
Homer Hsing
31401afe78
Call yylex_destroy() to free memory after yyparse()
2013-03-04 15:54:30 +00:00
Xiang, Haihao
3ffbe96c1e
Add support for flag register f1 on Ivy bridge
...
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-03-04 15:54:30 +00:00
Xiang, Haihao
2f772dd67b
s/flag_reg_nr/flag_subreg_nr for an instruction
...
s/flagreg/flag_subreg_nr for a condition
They are flag subregister number indeed
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-03-04 15:54:30 +00:00
Xiang, Haihao
27b4303a30
Support instructions which strictly follow the documents.
...
Previously some instructions parsed by this assembler don't follow the
documents.
Signed-off-by: Chen, Yangyang <yangyang.chen@intel.com>
Signed-off-by: Han, Haofu <haofu.han@intel.com>
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-03-04 15:54:28 +00:00
Zou Nan hai
db8aedc745
use left recursion instead of right recursion to avoid memory exhausted issue when compiling large source files
2013-03-04 15:54:27 +00:00
Zou Nanhai
be9bcee15f
Add support for labeled and conditional branches
...
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-03-04 15:54:26 +00:00
Keith Packard
ae85b10cf0
Add disassembler (intel-gen4disasm).
...
Decodes most simple instructions. Still needs work on branching and send.
2013-03-04 15:54:26 +00:00
Keith Packard
2d4d401d70
Add packed vector immediate values
2013-03-04 15:54:25 +00:00
Eric Anholt
09d8be4117
Use inttypes.h to get at uint32_t instead of sys/types.h.
2013-03-04 15:54:25 +00:00
Eric Anholt
74c81af3dd
Fix a compiler warning by defining struct {in,}direct_reg at the top level.
2013-03-04 15:54:23 +00:00
Eric Anholt
9b40c3724a
Add autotools build system, and rearrange directory layout.
2013-03-04 15:54:23 +00:00