Debian Codegraph @

lib/mlrisc-lib/MLRISC/mips/mltree/mipsRTL.sml

raw
1 (*
2 * WARNING: This file was automatically generated by MDLGen (v3.0)
3 * from the machine description file "mips/mips.mdl".
4 * DO NOT EDIT this file directly
5 *)
6
7
8 functor MIPSRTL(structure RTL : MLTREE_RTL
9 structure C : MIPSCELLS
10 )=
11 struct
12 structure T = RTL.T
13 structure P = struct
14 end
15
16 fun LB {rt, b, d, mem} = T.ASSIGN (64, T.$ (64, C.GP, rt), T.SX (64, 8,
17 T.$ (8, C.MEM, T.ADD (64, T.$ (64, C.GP, b), d))))
18 fun LBU {rt, b, d, mem} = T.ASSIGN (64, T.$ (64, C.GP, rt), T.ZX (64, 8,
19 T.$ (8, C.MEM, T.ADD (64, T.$ (64, C.GP, b), d))))
20 fun LH {rt, b, d, mem} = T.ASSIGN (64, T.$ (64, C.GP, rt), T.SX (64, 16,
21 T.$ (8, C.MEM, T.ADD (64, T.$ (64, C.GP, b), d))))
22 fun LHU {rt, b, d, mem} = T.ASSIGN (64, T.$ (64, C.GP, rt), T.ZX (64, 16,
23 T.$ (8, C.MEM, T.ADD (64, T.$ (64, C.GP, b), d))))
24 fun LW {rt, b, d, mem} = T.ASSIGN (64, T.$ (64, C.GP, rt), T.SX (64, 32,
25 T.$ (8, C.MEM, T.ADD (64, T.$ (64, C.GP, b), d))))
26 fun LD {rt, b, d, mem} = T.ASSIGN (64, T.$ (64, C.GP, rt), T.$ (8, C.MEM,
27 T.ADD (64, T.$ (64, C.GP, b), d)))
28 end
29