xref: /llvm-project/mlir/test/Conversion/ArithToEmitC/arith-to-emitc-failed.mlir (revision 71db97152173a524a3e16e02b7fdc50f405c8695)
1// RUN: mlir-opt -convert-arith-to-emitc %s -split-input-file -verify-diagnostics
2
3func.func @bool(%arg0: i1, %arg1: i1) {
4  // expected-error@+1 {{failed to legalize operation 'arith.addi'}}
5  %0 = arith.addi %arg0, %arg1 : i1
6  return
7}
8
9// -----
10
11func.func @vector(%arg0: vector<4xi32>, %arg1: vector<4xi32>) {
12  // expected-error@+1 {{failed to legalize operation 'arith.addi'}}
13  %0 = arith.addi %arg0, %arg1 : vector<4xi32>
14  return
15}
16