Skip to content

Commit b5d0af4

Browse files
committed
Introduce EXS, EIS and EOS variants to litmus
1 parent e210203 commit b5d0af4

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

litmus/variant_litmus.ml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ type t =
2020
| S128 (* 128 bit signed ints*)
2121
| Mixed (* Ignored *)
2222
| Vmsa (* Checked *)
23+
| ExS (* Enhanced Exception Synchronization *)
24+
| EIS (* Exception entry event behavior *)
25+
| EOS (* Exception return event behavior *)
2326
| Telechat (* Telechat idiosyncrasies *)
2427
| SVE (* Do nothing *)
2528
| SME (* Do nothing *)
@@ -37,6 +40,9 @@ let (mode_variants, arch_variants) : t list * t list =
3740
| S128 -> S128
3841
| Mixed -> Mixed
3942
| Vmsa -> Vmsa
43+
| ExS -> ExS
44+
| EIS -> EIS
45+
| EOS -> EOS
4046
| Telechat -> Telechat
4147
| SVE -> SVE
4248
| SME -> SME
@@ -50,7 +56,9 @@ let (mode_variants, arch_variants) : t list * t list =
5056
let base_modes =
5157
List.map f [NoInit; S128; Telechat]
5258
and archs =
53-
List.map f [SVE; SME; Self; Mixed; Vmsa; Pac; FPac; ConstPacField; MemTag;]
59+
List.map f
60+
[SVE; SME; Self; Mixed; Vmsa; ExS; EIS; EOS; Pac; FPac; ConstPacField;
61+
MemTag;]
5462
and mte_precisions =
5563
List.map (fun precision -> f (MTEPrecision precision)) Precision.all
5664
and fault_modes =
@@ -71,6 +79,9 @@ let parse s = match Misc.lowercase s with
7179
| "self" -> Some Self
7280
| "mixed" -> Some Mixed
7381
| "vmsa"|"kvm" -> Some Vmsa
82+
| "exs" -> Some ExS
83+
| "eis" -> Some EIS
84+
| "eos" -> Some EOS
7485
| "telechat" -> Some Telechat
7586
| "sve" -> Some SVE
7687
| "sme" -> Some SME
@@ -104,6 +115,9 @@ let pp = function
104115
| Mixed -> "mixed"
105116
| S128 -> "s128"
106117
| Vmsa -> "vmsa"
118+
| ExS -> "exs"
119+
| EIS -> "eis"
120+
| EOS -> "eos"
107121
| Telechat -> "telechat"
108122
| FaultHandling p -> Fault.Handling.pp p
109123
| SVE -> "sve"

litmus/variant_litmus.mli

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ type t =
2020
| S128 (* 128 bit signed ints*)
2121
| Mixed (* Ignored *)
2222
| Vmsa (* Checked *)
23+
| ExS (* Enhanced Exception Synchronization *)
24+
| EIS (* Exception entry event behavior *)
25+
| EOS (* Exception return event behavior *)
2326
| Telechat (* Telechat idiosyncrasies *)
2427
| SVE (* Do nothing *)
2528
| SME (* Do nothing *)

0 commit comments

Comments
 (0)