summaryrefslogtreecommitdiff
path: root/mips/hgen/map.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/map.hgen
parent5cbc35eb6d253e87185bbf247aa1e3db12d998d8 (diff)
add hgen for J branches
Diffstat (limited to 'mips/hgen/map.hgen')
-rw-r--r--mips/hgen/map.hgen4
1 files changed, 4 insertions, 0 deletions
diff --git a/mips/hgen/map.hgen b/mips/hgen/map.hgen
index 68c9e46a..5c6cde6a 100644
--- a/mips/hgen/map.hgen
+++ b/mips/hgen/map.hgen
@@ -11,4 +11,8 @@
| `MIPSSYNC -> `MIPSSYNC
| `MIPSBEQ (rs, rt, offset, ne, likely) -> `MIPSBEQ (map_reg rs, map_reg rt, offset, ne, likely)
| `MIPSBCMPZ (rs, offset, cmp, link, likely) -> `MIPSBCMPZ (map_reg rs, offset, cmp, link, likely)
+| `MIPSJ (offset) -> `MIPSJ (offset)
+| `MIPSJAL (offset) -> `MIPSJAL (offset) (* implicit R31? *)
+| `MIPSJR (rd) -> `MIPSJR (map_reg rd)
+| `MIPSJALR (rd, rs) -> `MIPSJALR(map_reg rd, map_reg rs)