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
83 lines
1.7 KiB
Plaintext
83 lines
1.7 KiB
Plaintext
// RUN: cir-opt %s -verify-diagnostics -split-input-file
|
|
|
|
!u32i = !cir.int<u, 32>
|
|
|
|
cir.func @f1() {
|
|
// expected-error @below {{'f' does not reference a valid function}}
|
|
cir.call @f() : () -> ()
|
|
cir.return
|
|
}
|
|
|
|
// -----
|
|
|
|
!u32i = !cir.int<u, 32>
|
|
|
|
cir.func private @f2()
|
|
cir.func @f3() {
|
|
// expected-error @below {{callee returns void but call has results}}
|
|
%0 = cir.call @f2() : () -> !u32i
|
|
cir.return
|
|
}
|
|
|
|
// -----
|
|
|
|
!u32i = !cir.int<u, 32>
|
|
|
|
cir.func private @f4() -> !u32i
|
|
cir.func @f5() {
|
|
// expected-error @below {{incorrect number of results for callee}}
|
|
cir.call @f4() : () -> ()
|
|
cir.return
|
|
}
|
|
|
|
// -----
|
|
|
|
!s32i = !cir.int<s, 32>
|
|
!u32i = !cir.int<u, 32>
|
|
|
|
cir.func private @f6() -> !u32i
|
|
cir.func @f7() {
|
|
// expected-error @below {{result type mismatch}}
|
|
%0 = cir.call @f6() : () -> !s32i
|
|
cir.return
|
|
}
|
|
|
|
// -----
|
|
|
|
!s32i = !cir.int<s, 32>
|
|
!u32i = !cir.int<u, 32>
|
|
|
|
cir.func private @f8(!s32i, !s32i)
|
|
cir.func @f9() {
|
|
%0 = cir.const #cir.int<1> : !s32i
|
|
// expected-error @below {{incorrect number of operands for callee}}
|
|
cir.call @f8(%0) : (!s32i) -> ()
|
|
cir.return
|
|
}
|
|
|
|
// -----
|
|
|
|
!s32i = !cir.int<s, 32>
|
|
!u32i = !cir.int<u, 32>
|
|
|
|
cir.func private @f10(!s32i, !s32i)
|
|
cir.func @f11() {
|
|
%0 = cir.const #cir.int<1> : !s32i
|
|
%1 = cir.const #cir.int<2> : !u32i
|
|
// expected-error @below {{operand type mismatch: expected operand type '!cir.int<s, 32>', but provided '!cir.int<u, 32>' for operand number 1}}
|
|
cir.call @f10(%0, %1) : (!s32i, !u32i) -> ()
|
|
cir.return
|
|
}
|
|
|
|
// -----
|
|
|
|
!s32i = !cir.int<s, 32>
|
|
|
|
cir.func private @f12(!s32i, !s32i, ...)
|
|
cir.func @f13() {
|
|
%0 = cir.const #cir.int<1> : !s32i
|
|
// expected-error @below {{too few operands for callee}}
|
|
cir.call @f12(%0) : (!s32i) -> ()
|
|
cir.return
|
|
}
|