Skip to content

Commit

Permalink
avx2 stack extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
mbbarbosa-lectures committed Dec 6, 2024
1 parent 6a88649 commit 5e0e60b
Show file tree
Hide file tree
Showing 60 changed files with 9,295 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array1.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array1 with op size <- 1.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array1024.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array1024 with op size <- 1024.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array1088.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array1088 with op size <- 1088.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array1120.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array1120 with op size <- 1120.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array1152.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array1152 with op size <- 1152.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array1184.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array1184 with op size <- 1184.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array128.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array128 with op size <- 128.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array136.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array136 with op size <- 136.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array144.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array144 with op size <- 144.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array16.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array16 with op size <- 16.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array2.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array2 with op size <- 2.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array2048.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array2048 with op size <- 2048.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array2144.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array2144 with op size <- 2144.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array2304.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array2304 with op size <- 2304.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array24.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array24 with op size <- 24.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array2400.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array2400 with op size <- 2400.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array25.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array25 with op size <- 25.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array256.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array256 with op size <- 256.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array300.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array300 with op size <- 300.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array32.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array32 with op size <- 32.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array384.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array384 with op size <- 384.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array4.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array4 with op size <- 4.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array400.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array400 with op size <- 400.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array5.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array5 with op size <- 5.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array536.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array536 with op size <- 536.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array6.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array6 with op size <- 6.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array64.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array64 with op size <- 64.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array7.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array7 with op size <- 7.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array768.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array768 with op size <- 768.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array8.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array8 with op size <- 8.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Array960.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JArray.

clone export PolyArray as Array960 with op size <- 960.
19 changes: 19 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- Makefile -*-

# --------------------------------------------------------------------
-include ../../../Makefile.conf

# --------------------------------------------------------------------
.PHONY: all ec clean

# --------------------------------------------------------------------
all: ec

ec:
$(JASMINC) ../jkem.jazz -oec jkem_avx2.ec \
-ec jade_kem_mlkem_mlkem768_amd64_avx2_keypair \
-ec jade_kem_mlkem_mlkem768_amd64_avx2_enc \
-ec jade_kem_mlkem_mlkem768_amd64_avx2_dec

clean:
rm -f *.ec
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray1.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray1 with op size <- 1.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray1088.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray1088 with op size <- 1088.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray1120.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray1120 with op size <- 1120.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray1152.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray1152 with op size <- 1152.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray1184.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray1184 with op size <- 1184.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray128.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray128 with op size <- 128.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray1536.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray1536 with op size <- 1536.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray16.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray16 with op size <- 16.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray160.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray160 with op size <- 160.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray192.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray192 with op size <- 192.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray2.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray2 with op size <- 2.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray200.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray200 with op size <- 200.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray2048.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray2048 with op size <- 2048.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray2144.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray2144 with op size <- 2144.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray224.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray224 with op size <- 224.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray2400.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray2400 with op size <- 2400.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray256.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray256 with op size <- 256.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray32.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray32 with op size <- 32.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray384.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray384 with op size <- 384.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray4.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray4 with op size <- 4.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray4608.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray4608 with op size <- 4608.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray512.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray512 with op size <- 512.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray536.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray536 with op size <- 536.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray64.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray64 with op size <- 64.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray8.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray8 with op size <- 8.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray800.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray800 with op size <- 800.
3 changes: 3 additions & 0 deletions code/jasmin/mlkem_avx2_stack/extraction/WArray960.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Jasmin require import JWord_array.

clone export WArray as WArray960 with op size <- 960.
Loading

0 comments on commit 5e0e60b

Please sign in to comment.