Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderViand-Intel committed Dec 15, 2024
1 parent 446e672 commit 220e714
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 225 deletions.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions tests/Dialect/PISA/end_to_end/BUILD

This file was deleted.

8 changes: 0 additions & 8 deletions tests/Dialect/PISA/end_to_end/README.md

This file was deleted.

44 changes: 0 additions & 44 deletions tests/Dialect/PISA/end_to_end/basic.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions tests/Dialect/PISA/end_to_end/basic.csv

This file was deleted.

24 changes: 0 additions & 24 deletions tests/Dialect/PISA/end_to_end/basic.mlir

This file was deleted.

6 changes: 0 additions & 6 deletions tests/Dialect/PISA/end_to_end/basic_bgv.mlir

This file was deleted.

6 changes: 0 additions & 6 deletions tests/Dialect/PISA/end_to_end/basic_lwe.mlir

This file was deleted.

29 changes: 0 additions & 29 deletions tests/Dialect/PISA/end_to_end/basic_openfhe.mlir

This file was deleted.

7 changes: 0 additions & 7 deletions tests/Dialect/PISA/end_to_end/basic_pisa.mlir

This file was deleted.

6 changes: 0 additions & 6 deletions tests/Dialect/PISA/end_to_end/basic_poly.mlir

This file was deleted.

7 changes: 0 additions & 7 deletions tests/Dialect/PISA/end_to_end/basic_spoly.mlir

This file was deleted.

70 changes: 0 additions & 70 deletions tests/Dialect/PISA/end_to_end/test.bzl

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// RUN: heir-opt --mlir-to-bgv='ciphertext-degree=8192' --bgv-to-lwe --lwe-to-polynomial --convert-elementwise-to-affine --full-loop-unroll --convert-tensor-to-scalars --polynomial-to-pisa %s

// FIXME: ADD FILECHECK
!t = tensor<8192xi16>

func.func @basic_test(%x: !t {secret.secret}, %y: !t {secret.secret}) -> !t {
%r0 = tensor.empty() : !t
%r = affine.for %i = 0 to 8192 iter_args(%r = %r0) -> !t {
%xi = tensor.extract %x[%i] : !t
%yi = tensor.extract %y[%i] : !t
%si = arith.addi %xi, %yi : i16
%ri = tensor.insert %si into %r[%i] : !t
affine.yield %ri : !t
}
return %r : !t
}
Loading

0 comments on commit 220e714

Please sign in to comment.