CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
54 lines
2.1 KiB
MLIR
54 lines
2.1 KiB
MLIR
// RUN: mlir-opt %s | FileCheck %s
|
|
|
|
// CHECK-LABEL: wasmssa.func @func_0(
|
|
// CHECK-SAME: %[[ARG0:.*]]: !wasmssa<local ref to i32>) -> i32 {
|
|
// CHECK: %[[VAL_0:.*]] = wasmssa.local_get %[[ARG0]] : ref to i32
|
|
// CHECK: wasmssa.if %[[VAL_0]] : {
|
|
// CHECK: %[[VAL_1:.*]] = wasmssa.const 5.000000e-01 : f32
|
|
// CHECK: wasmssa.block_return %[[VAL_1]] : f32
|
|
// CHECK: } "else "{
|
|
// CHECK: %[[VAL_2:.*]] = wasmssa.const 2.500000e-01 : f32
|
|
// CHECK: wasmssa.block_return %[[VAL_2]] : f32
|
|
// CHECK: }> ^bb1
|
|
// CHECK: ^bb1(%[[VAL_3:.*]]: f32):
|
|
// CHECK: wasmssa.return %[[VAL_3]] : f32
|
|
wasmssa.func @func_0(%arg0 : !wasmssa<local ref to i32>) -> i32 {
|
|
%cond = wasmssa.local_get %arg0 : ref to i32
|
|
wasmssa.if %cond : {
|
|
%c0 = wasmssa.const 0.5 : f32
|
|
wasmssa.block_return %c0 : f32
|
|
} else {
|
|
%c1 = wasmssa.const 0.25 : f32
|
|
wasmssa.block_return %c1 : f32
|
|
} >^bb1
|
|
^bb1(%retVal: f32):
|
|
wasmssa.return %retVal : f32
|
|
}
|
|
|
|
// CHECK-LABEL: wasmssa.func @func_1(
|
|
// CHECK-SAME: %[[ARG0:.*]]: !wasmssa<local ref to i32>) -> i32 {
|
|
// CHECK: %[[VAL_0:.*]] = wasmssa.local_get %[[ARG0]] : ref to i32
|
|
// CHECK: %[[VAL_1:.*]] = wasmssa.local of type i32
|
|
// CHECK: %[[VAL_2:.*]] = wasmssa.const 0 : i64
|
|
// CHECK: wasmssa.if %[[VAL_0]] : {
|
|
// CHECK: %[[VAL_3:.*]] = wasmssa.const 1 : i32
|
|
// CHECK: wasmssa.local_set %[[VAL_1]] : ref to i32 to %[[VAL_3]] : i32
|
|
// CHECK: wasmssa.block_return
|
|
// CHECK: } > ^bb1
|
|
// CHECK: ^bb1:
|
|
// CHECK: %[[VAL_4:.*]] = wasmssa.local_get %[[VAL_1]] : ref to i32
|
|
// CHECK: wasmssa.return %[[VAL_4]] : i32
|
|
wasmssa.func @func_1(%arg0 : !wasmssa<local ref to i32>) -> i32 {
|
|
%cond = wasmssa.local_get %arg0 : ref to i32
|
|
%var = wasmssa.local of type i32
|
|
%zero = wasmssa.const 0
|
|
wasmssa.if %cond : {
|
|
%c1 = wasmssa.const 1 : i32
|
|
wasmssa.local_set %var : ref to i32 to %c1 : i32
|
|
wasmssa.block_return
|
|
} >^bb1
|
|
^bb1:
|
|
%res = wasmssa.local_get %var : ref to i32
|
|
wasmssa.return %res : i32
|
|
}
|