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
45 lines
1.9 KiB
LLVM
45 lines
1.9 KiB
LLVM
; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 | FileCheck %s --check-prefix CHECK-DEFAULT
|
|
; RUN: llc < %s -mtriple=nvptx -mcpu=sm_20 | FileCheck %s --check-prefix CHECK-DEFAULT-32
|
|
; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 -nvptx-short-ptr | FileCheck %s --check-prefixes CHECK-SHORT-SHARED,CHECK-SHORT-CONST,CHECK-SHORT-LOCAL
|
|
|
|
; RUN: %if ptxas-ptr32 %{ llc < %s -mtriple=nvptx -mcpu=sm_20 | %ptxas-verify %}
|
|
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
|
|
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 -nvptx-short-ptr | %ptxas-verify %}
|
|
|
|
; CHECK-DEFAULT: .visible .shared .align 8 .u64 s
|
|
; CHECK-DEFAULT-32: .visible .shared .align 8 .u32 s
|
|
; CHECK-SHORT-SHARED: .visible .shared .align 8 .u32 s
|
|
@s = local_unnamed_addr addrspace(3) global ptr addrspace(3) null, align 8
|
|
|
|
; CHECK-DEFAULT: .visible .const .align 8 .u64 c
|
|
; CHECK-DEFAULT-32: .visible .const .align 8 .u32 c
|
|
; CHECK-SHORT-CONST: .visible .const .align 8 .u32 c
|
|
@c = local_unnamed_addr addrspace(4) global ptr addrspace(4) null, align 8
|
|
|
|
declare void @use(i8 %arg);
|
|
|
|
; CHECK-DEFAULT: .param .b64 test1_param_0
|
|
; CHECK-DEFAULT-32: .param .b32 test1_param_0
|
|
; CHECK-SHORT-LOCAL: .param .b32 test1_param_0
|
|
define void @test1(ptr addrspace(5) %local) {
|
|
; CHECK-DEFAULT: ld.param.b64 %rd{{.*}}, [test1_param_0];
|
|
; CHECK-DEFAULT-32: ld.param.b32 %r{{.*}}, [test1_param_0];
|
|
; CHECK-SHORT-LOCAL: ld.param.b32 %r{{.*}}, [test1_param_0];
|
|
%v = load i8, ptr addrspace(5) %local
|
|
call void @use(i8 %v)
|
|
ret void
|
|
}
|
|
|
|
define void @test2() {
|
|
%v = alloca i8
|
|
%cast = addrspacecast ptr %v to ptr addrspace(5)
|
|
; CHECK-DEFAULT: .param .b64 param0;
|
|
; CHECK-DEFAULT: st.param.b64
|
|
; CHECK-DEFAULT-32: .param .b32 param0;
|
|
; CHECK-DEFAULT-32: st.param.b32
|
|
; CHECK-SHORT-LOCAL: .param .b32 param0;
|
|
; CHECK-SHORT-LOCAL: st.param.b32
|
|
call void @test1(ptr addrspace(5) %cast)
|
|
ret void
|
|
}
|