Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions proofs/hol_light/aarch64/proofs/aarch64_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,6 @@ let MAP_UNTIL_TARGET_PC f n = fun (asl, w) ->
(TARGET_PC_REACHED_TAC target_pc ORELSE (f n THEN core (n + 1))) (asl, w)
in core n (asl, w);;

(* ========================================================================= *)
(* SIMD simplification: subword extraction + numeric reduction + folding. *)
(* ========================================================================= *)

let SIMD_SIMPLIFY_CONV unfold_defs =
TOP_DEPTH_CONV
(REWR_CONV WORD_SUBWORD_AND ORELSEC WORD_SIMPLE_SUBWORD_CONV) THENC
DEPTH_CONV WORD_NUM_RED_CONV THENC
REWRITE_CONV (map GSYM unfold_defs);;

let SIMD_SIMPLIFY_TAC unfold_defs =
let simdable = can (term_match [] `read X (s:armstate):int128 = whatever`) in
TRY(FIRST_X_ASSUM
(ASSUME_TAC o
CONV_RULE(RAND_CONV (SIMD_SIMPLIFY_CONV unfold_defs)) o
check (simdable o concl)));;

(* ========================================================================= *)
(* Parametric infrastructure for d-bit packed coefficients (SIMD). *)
(* Supports d=18 (GAMMA1=2^17) and d=20 (GAMMA1=2^19). *)
Expand Down
Loading