brintos

brintos / llvm-project-archived public Read only

0
0
Text · 592 B · c0169aa Raw
18 lines · plain
1// RUN: yaml2obj %S/inputs/call.yaml.wasm -o - | mlir-translate --import-wasm | FileCheck %s2 3/* Source code used to create this test:4(module5(func $forty_two (result i32)6i32.const 42)7(func(export "forty_two")(result i32)8call $forty_two))9*/10 11// CHECK-LABEL:   wasmssa.func @func_0() -> i32 {12// CHECK:           %[[VAL_0:.*]] = wasmssa.const 42 : i3213// CHECK:           wasmssa.return %[[VAL_0]] : i3214 15// CHECK-LABEL:   wasmssa.func exported @forty_two() -> i32 {16// CHECK:           %[[VAL_0:.*]] = wasmssa.call @func_0 : () -> i3217// CHECK:           wasmssa.return %[[VAL_0]] : i3218