brintos

brintos / llvm-project-archived public Read only

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