brintos

brintos / llvm-project-archived public Read only

0
0
Text · 574 B · 792f8f6 Raw
19 lines · plain
1// RUN: not mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=5" 2>&1 | FileCheck %s2 3// CHECK-NOT: failed to read bytecode4func.func @base_test(%arg0 : i32) -> f32 {5  %0 = "test.addi"(%arg0, %arg0) : (i32, i32) -> i326  %1 = "test.cast"(%0) : (i32) -> f327  return %1 : f328}9 10// -----11 12// CHECK-LABEL: error: unknown attribute code: 9913// CHECK: failed to read bytecode14func.func @base_test(%arg0 : !test.i32) -> f32 {15  %0 = "test.addi"(%arg0, %arg0) : (!test.i32, !test.i32) -> !test.i3216  %1 = "test.cast"(%0) : (!test.i32) -> f3217  return %1 : f3218}19