test(compiler): Add another test for mul_plain padding verification

This commit is contained in:
Quentin Bourgerie
2021-06-16 09:18:29 +02:00
parent aafc9e44e9
commit 4e41969f3e

View File

@@ -0,0 +1,8 @@
// RUN: not zamacompiler %s 2>&1| FileCheck %s
// CHECK-LABEL: error: 'MidLFHE.mul_plain' op has unexpected padding parameter of its GLWE result, expected:1
func @mul_plain(%arg0: !MidLFHE.glwe<{1024,12,64}{3,7,0,50,-25}>) -> !MidLFHE.glwe<{1024,12,64}{3,7,0,50,-25}> {
%0 = constant 2 : i32
%1 = "MidLFHE.mul_plain"(%arg0, %0): (!MidLFHE.glwe<{1024,12,64}{3,7,0,50,-25}>, i32) -> (!MidLFHE.glwe<{1024,12,64}{3,7,0,50,-25}>)
return %1: !MidLFHE.glwe<{1024,12,64}{3,7,0,50,-25}>
}