Definition for Unpack

This commit is contained in:
Iavor Diatchki 2018-03-27 10:46:47 -07:00
parent f54f0a13ba
commit 0f3b97b8bf

View File

@ -207,6 +207,12 @@ pureSem sym fn =
_ -> fail "Unepected size for VPCLMULQDQ"
M.VPUnpackLQDQ -> vecOp2 sym LittleEndian w (knownNat @64) x y $
\xs ys -> let n = V.length xs
in case mul2Plus n of
Refl -> V.take n (V.interlieve xs ys)
M.VAESEnc
| Just Refl <- testEquality w n128 ->
do let f = fnAesEnc (symFuns sym)
@ -247,6 +253,7 @@ pureSem sym fn =
case mulCancelR elNum (V.length xs) elSz of
Refl -> V.insertAt i e xs
semPointwise :: (1 <= w) =>
M.AVXPointWiseOp2 -> NatRepr w ->
E sym (BVType w) -> E sym (BVType w) -> E sym (BVType w)