brintos

brintos / llvm-project-archived public Read only

0
0
Text · 431 B · 19ab858 Raw
13 lines · plain
1// RUN: mlir-opt %s -test-rewrite-dynamic-op | FileCheck %s2 3// Test that `test.one_operand_two_results` is replaced with4// `test.generic_dynamic_op`.5 6// CHECK-LABEL: func @rewrite_dynamic_op7func.func @rewrite_dynamic_op(%arg0: i32) {8  // CHECK-NEXT: %{{.*}}:2 = "test.dynamic_generic"(%arg0) : (i32) -> (i32, i32)9  %0:2 = "test.dynamic_one_operand_two_results"(%arg0) : (i32) -> (i32, i32)10  // CHECK-NEXT: return11  return12}13