brintos

brintos / llvm-project-archived public Read only

0
0
Text · 441 B · 30abd81 Raw
16 lines · plain
1// RUN: mlir-opt -convert-arith-to-emitc %s -split-input-file -verify-diagnostics2 3func.func @bool(%arg0: i1, %arg1: i1) {4  // expected-error@+1 {{failed to legalize operation 'arith.addi'}}5  %0 = arith.addi %arg0, %arg1 : i16  return7}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  return15}16