Files
TheRock/compiler/amd-llvm/clang/test/CIR/IR/invalid-addrspace.cir
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

73 lines
2.2 KiB
Plaintext

// RUN: cir-opt %s -verify-diagnostics -split-input-file
// -----
!u64i = !cir.int<u, 64>
// expected-error @+1 {{unknown address space specifier 'foobar'; expected 'target_address_space' or 'lang_address_space'}}
cir.func @address_space1(%p : !cir.ptr<!u64i, foobar>) {
cir.return
}
// -----
!u64i = !cir.int<u, 64>
// expected-error@below {{expected '(' after 'target_address_space'}}
// expected-error@below {{expected '('}}
cir.func @address_space2(%p : !cir.ptr<!u64i, target_address_space>) {
cir.return
}
// -----
!u64i = !cir.int<u, 64>
// expected-error@below {{expected target address space value}}
// expected-error@below {{expected integer value}}
cir.func @address_space3(%p : !cir.ptr<!u64i, target_address_space()>) {
cir.return
}
// -----
!u64i = !cir.int<u, 64>
// expected-error@below {{expected '(' after 'lang_address_space'}}
// expected-error@below {{expected '('}}
cir.func @lang_address_space_no_parens(%p : !cir.ptr<!u64i, lang_address_space>) {
cir.return
}
// -----
!u64i = !cir.int<u, 64>
// expected-error@+1 {{expected keyword for language address space kind}}
cir.func @lang_address_space_empty(%p : !cir.ptr<!u64i, lang_address_space()>) {
cir.return
}
// -----
!u64i = !cir.int<u, 64>
// expected-error@+1 {{expected one of [default, offload_private, offload_local, offload_global, offload_constant, offload_generic] for language address space kind}}
cir.func @lang_address_space_invalid(%p : !cir.ptr<!u64i, lang_address_space(foobar)>) {
cir.return
}
// -----
!s32i = !cir.int<s, 32>
cir.global external target_address_space(1) @global_in_as1 = #cir.int<42> : !s32i
cir.func @get_global_mismatched_address_space() {
// expected-error@+1 {{result type address space does not match the address space of the global @global_in_as1}}
%0 = cir.get_global @global_in_as1 : !cir.ptr<!s32i>
cir.return
}
// -----
!s32i = !cir.int<s, 32>
cir.global external @global_default_as = #cir.int<0> : !s32i
cir.func @get_global_unexpected_address_space() {
// expected-error@+1 {{result type address space does not match the address space of the global @global_default_as}}
%0 = cir.get_global @global_default_as : !cir.ptr<!s32i, target_address_space(1)>
cir.return
}