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
41 lines
1.8 KiB
LLVM
41 lines
1.8 KiB
LLVM
; Test to verify that NVPTX backend correctly handles constant global vectors
|
|
; containing sub-byte sized elements.
|
|
|
|
; RUN: llc < %s -mtriple=nvptx64 | FileCheck %s
|
|
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 | %ptxas-verify %}
|
|
|
|
target triple = "nvptx-nvidia-cuda"
|
|
|
|
; Tests for vectors forming one complete byte.
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test0[1] = {33};
|
|
@test0 = local_unnamed_addr addrspace(1) constant <2 x i4> <i4 1, i4 2>, align 1
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test1[1] = {228};
|
|
@test1 = local_unnamed_addr addrspace(1) constant <4 x i2> <i2 0, i2 1, i2 2, i2 3>, align 1
|
|
|
|
; Tests for vectors forming multiple complete bytes.
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test2[2] = {33, 67};
|
|
@test2 = local_unnamed_addr addrspace(1) constant <4 x i4> <i4 1, i4 2, i4 3, i4 4>, align 1
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test3[2] = {228, 228};
|
|
@test3 = local_unnamed_addr addrspace(1) constant <8 x i2> <i2 0, i2 1, i2 2, i2 3, i2 0, i2 1, i2 2, i2 3>, align 1
|
|
|
|
; Tests for unevenly sized vectors which requires tail padding.
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test4[1] = {1};
|
|
@test4 = local_unnamed_addr addrspace(1) constant <1 x i4> <i4 1>, align 1
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test5[2] = {33, 3};
|
|
@test5 = local_unnamed_addr addrspace(1) constant <3 x i4> <i4 1, i4 2, i4 3>, align 1
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test6[3] = {33, 33, 1};
|
|
@test6 = local_unnamed_addr addrspace(1) constant <5 x i4> <i4 1, i4 2, i4 1, i4 2, i4 1>, align 1
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test7[2] = {228, 11};
|
|
@test7 = local_unnamed_addr addrspace(1) constant <6 x i2> <i2 0, i2 1, i2 2, i2 3, i2 3, i2 2>, align 1
|
|
|
|
; CHECK: .visible .global .align 1 .b8 test8[3] = {228, 228, 11};
|
|
@test8 = local_unnamed_addr addrspace(1) constant <10 x i2> <i2 0, i2 1, i2 2, i2 3, i2 0, i2 1, i2 2, i2 3, i2 3, i2 2>, align 1
|