blob: 54208fcc334490831b3548808a540bd55cc3669a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
(***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
(* *)
(* Copyright 1996 Institut National de Recherche en Informatique et *)
(* en Automatique. All rights reserved. This file is distributed *)
(* under the terms of the Q Public License version 1.0. *)
(* *)
(***********************************************************************)
(* $Id$ *)
(* Reloading for the HPPA *)
open Cmm
open Arch
open Reg
open Mach
open Proc
class reload = object (self)
inherit Reloadgen.reload_generic as super
method reload_operation op arg res =
match op with
Iintop(Idiv | Imod)
| Iintop_imm((Idiv | Imod), _) -> (arg, res)
| _ -> super#reload_operation op arg res
end
let fundecl f =
(new reload)#fundecl f
|