brintos

brintos / llvm-project-archived public Read only

0
0
Text · 473 B · 749c833 Raw
9 lines · plain
1// RUN: mlir-opt --split-input-file --tosa-to-arith="include-apply-rescale=true use-32-bit=true" %s -verify-diagnostics2 3// CHECK-LABEL: @apply_scale_unsupported_inexact_round4func.func @apply_scale_unsupported_inexact_round(%arg0 : i64, %arg1 : i32, %arg2 : i8) -> (i32) {5  // expected-error@+1 {{failed to legalize operation 'tosa.apply_scale'}}6  %res = tosa.apply_scale %arg0, %arg1, %arg2 {rounding_mode = INEXACT_ROUND} : (i64, i32, i8) -> i327  return %res : i328}9