12 lines · plain
1// RUN: mlir-opt %s -canonicalize -split-input-file | FileCheck %s2 3func.func @test() -> i32 {4 %c5 = "test.constant"() {value = 5 : i32} : () -> i325 %res = "test.manual_cpp_op_with_fold"(%c5) : (i32) -> i326 return %res : i327}8 9// CHECK-LABEL: func.func @test10// CHECK-NEXT: %[[C:.*]] = "test.constant"() <{value = 5 : i32}>11// CHECK-NEXT: return %[[C]]12