1997-07-24 04:49:12 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Objective Caml *)
|
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1997-07-24 04:49:12 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
|
|
|
(* Reloading for the HPPA *)
|
|
|
|
|
2008-01-11 08:13:18 -08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
1997-07-24 04:49:12 -07:00
|
|
|
let fundecl f =
|
2008-01-11 08:13:18 -08:00
|
|
|
(new reload)#fundecl f
|