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