Reduce replicative code in gram.y by reloc_target field in src_operand
authorHomer Hsing <homer.xing@intel.com>
Fri, 21 Sep 2012 02:06:20 +0000 (10:06 +0800)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:33 +0000 (15:54 +0000)
commitb0b540f02a67ca8d7d1e6748586a51e5bd755503
treeb15850fd72555c32cfb962b5c64569a15c5faa34
parent1f9a4d71e8b87ab08209cd42b6651b4e0c04a433
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.
assembler/src/gen4asm.h
assembler/src/gram.y