1 // RUN: not mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=5" 2>&1 | FileCheck %s
3 // CHECK-NOT: failed to read bytecode
4 func.func @base_test(%arg0 : i32) -> f32 {
5 %0 = "test.addi"(%arg0, %arg0) : (i32, i32) -> i32
6 %1 = "test.cast"(%0) : (i32) -> f32
12 // CHECK-LABEL: error: unknown attribute code: 99
13 // CHECK: failed to read bytecode
14 func.func @base_test(%arg0 : !test.i32) -> f32 {
15 %0 = "test.addi"(%arg0, %arg0) : (!test.i32, !test.i32) -> !test.i32
16 %1 = "test.cast"(%0) : (!test.i32) -> f32