summaryrefslogtreecommitdiff
path: root/mips/hgen/parser.hgen
diff options
context:
space:
mode:
authorRobert Norton2016-10-27 16:42:27 +0100
committerRobert Norton2016-10-27 16:42:38 +0100
commit42df1991945372e63cb5c8d078e13b4163784147 (patch)
treee8baa35dc7449f7f3a00a36436e854b0253fdf0f /mips/hgen/parser.hgen
parent5cbc35eb6d253e87185bbf247aa1e3db12d998d8 (diff)
add hgen for J branches
Diffstat (limited to 'mips/hgen/parser.hgen')
-rw-r--r--mips/hgen/parser.hgen8
1 files changed, 8 insertions, 0 deletions
diff --git a/mips/hgen/parser.hgen b/mips/hgen/parser.hgen
index bf15ab1e..1e18c01c 100644
--- a/mips/hgen/parser.hgen
+++ b/mips/hgen/parser.hgen
@@ -24,3 +24,11 @@
{ `MIPSBEQ ( $2, $4, $6, $1.ne, $1.likely) }
| BCMPZ ARCH_REG COMMA NUM
{ `MIPSBCMPZ ( $2, $4, $1.cmp, $1.link, $1.likely) }
+| J NUM
+ { `MIPSJ ($2) }
+| JAL NUM
+ { `MIPSJAL ($2) }
+| JR ARCH_REG
+ { `MIPSJR ($2) }
+| JALR ARCH_REG COMMA ARCH_REG
+ { `MIPSJALR ($2, $4) }