aboutsummaryrefslogtreecommitdiffstats
path: root/aarch64/Machregsaux.ml
blob: 5f3c1a8d0240bb44d57f925549d4b3f83b648fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(* *********************************************************************)
(*                                                                     *)
(*              The Compcert verified compiler                         *)
(*                                                                     *)
(*         Xavier Leroy, Collège de France and INRIA Paris             *)
(*                                                                     *)
(*  Copyright Institut National de Recherche en Informatique et en     *)
(*  Automatique.  All rights reserved.  This file is distributed       *)
(*  under the terms of the INRIA Non-Commercial License Agreement.     *)
(*                                                                     *)
(* *********************************************************************)

(** Auxiliary functions on machine registers *)

let is_scratch_register s =
  s = "X16" || s = "x16" || s = "X30" || s = "x30"