mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
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>
16 lines
462 B
MLIR
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>
|
|
}
|