Files
concrete/compiler/tests/check_tests/Dialect/FHE/ops.invalid.mlir
Andi Drebes 85ebc0cb7a Rebase onto llvm-project 3f81841474fe with patch for arbitrary types in linalg named ops
Rebase to llvm-project at 3f81841474fe with a pending upstream patch
for arbitrary element types in linalg named operations.

Co-authored-by: Ayoub Benaissa <ayoub.benaissa@zama.ai>
2022-07-27 22:45:38 +02:00

16 lines
462 B
MLIR

// RUN: concretecompiler --split-input-file --verify-diagnostics --action=roundtrip %s
func.func @zero_1D_scalar() -> tensor<4x!FHE.eint<2>> {
// expected-error @+1 {{'FHE.zero_tensor' op}}
%0 = "FHE.zero_tensor"() : () -> !FHE.eint<2>
return %0 : !FHE.eint<2>
}
// -----
func.func @zero_plaintext() -> tensor<4x9xi32> {
// expected-error @+1 {{'FHE.zero_tensor' op}}
%0 = "FHE.zero_tensor"() : () -> tensor<4x9xi32>
return %0 : tensor<4x9xi32>
}