brintos

brintos / llvm-project-archived public Read only

0
0
Text · 764 B · 323d41a Raw
28 lines · plain
1// RUN: yaml2obj %S/inputs/and.yaml.wasm -o - | mlir-translate --import-wasm | FileCheck %s2 3/* Source code used to generate this test:4(module5    (func (export "and_i32") (result i32)6    i32.const 107    i32.const 38    i32.and)9 10    (func (export "and_i64") (result i64)11    i64.const 1012    i64.const 313    i64.and)14)15*/16 17// CHECK-LABEL: wasmssa.func exported @and_i32() -> i32 {18// CHECK:    %0 = wasmssa.const 10 : i3219// CHECK:    %1 = wasmssa.const 3 : i3220// CHECK:    %2 = wasmssa.and %0 %1 : i3221// CHECK:    wasmssa.return %2 : i3222 23// CHECK-LABEL: wasmssa.func exported @and_i64() -> i64 {24// CHECK:    %0 = wasmssa.const 10 : i6425// CHECK:    %1 = wasmssa.const 3 : i6426// CHECK:    %2 = wasmssa.and %0 %1 : i6427// CHECK:    wasmssa.return %2 : i6428