Skip to content

Commit

Permalink
[herd] Unroll metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
maranget committed Oct 9, 2024
1 parent 4e24291 commit deb0175
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions herd/parseTest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ module Top (TopConf:RunTest.Config) = struct
end)
(* Override *)
include TopConf
let unroll =
Option.map
(fun s ->
try int_of_string s
with Failure _ ->
Warn.user_error "unroll exects an integer argument")
(MiscParser.get_info_on_info MiscParser.unroll_key
splitted.Splitter.info)
|>
(function | None -> unroll | Some _ as o -> o)
let fault_handling = TestConf.fault_handling
let mte_precision = TestConf.mte_precision
let sve_vector_length = TestConf.sve_vector_length
Expand Down
1 change: 1 addition & 0 deletions lib/miscParser.ml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ and user_key = "user"
and el0_key = "el0"
and memory_type_key = "MemoryType"
and mt_key = "MT"
and unroll_key = "Unroll"

let key_match k1 k2 =
let len1 = String.length k1 in
Expand Down
2 changes: 1 addition & 1 deletion lib/miscParser.mli
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ val user_key : string
val el0_key : string
val memory_type_key : string
val mt_key : string

val unroll_key : string
val key_match : string -> string -> bool

(* Meta-data included in digest ? *)
Expand Down

0 comments on commit deb0175

Please sign in to comment.