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
143 lines
5.2 KiB
LLVM
143 lines
5.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc < %s -mtriple=nvptx64 | FileCheck %s
|
|
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 | %ptxas-verify %}
|
|
|
|
target triple = "nvptx64-nvidia-cuda"
|
|
|
|
%struct.T = type { i64, <2 x i32>, <4 x i32> }
|
|
|
|
declare void @test_call(%struct.T)
|
|
|
|
define void @test_store_param_undef() {
|
|
; CHECK-LABEL: test_store_param_undef(
|
|
; CHECK: {
|
|
; CHECK-EMPTY:
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: { // callseq 0, 0
|
|
; CHECK-NEXT: .param .align 16 .b8 param0[32];
|
|
; CHECK-NEXT: call.uni test_call, (param0);
|
|
; CHECK-NEXT: } // callseq 0
|
|
; CHECK-NEXT: ret;
|
|
call void @test_call(%struct.T undef)
|
|
ret void
|
|
}
|
|
|
|
define void @test_store_param_def(i64 %param0, i32 %param1) {
|
|
; CHECK-LABEL: test_store_param_def(
|
|
; CHECK: {
|
|
; CHECK-NEXT: .reg .b32 %r<6>;
|
|
; CHECK-NEXT: .reg .b64 %rd<2>;
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: ld.param.b64 %rd1, [test_store_param_def_param_0];
|
|
; CHECK-NEXT: ld.param.b32 %r1, [test_store_param_def_param_1];
|
|
; CHECK-NEXT: { // callseq 1, 0
|
|
; CHECK-NEXT: .param .align 16 .b8 param0[32];
|
|
; CHECK-NEXT: st.param.v4.b32 [param0+16], {%r2, %r1, %r3, %r4};
|
|
; CHECK-NEXT: st.param.v2.b32 [param0+8], {%r5, %r1};
|
|
; CHECK-NEXT: st.param.b64 [param0], %rd1;
|
|
; CHECK-NEXT: call.uni test_call, (param0);
|
|
; CHECK-NEXT: } // callseq 1
|
|
; CHECK-NEXT: ret;
|
|
%V2 = insertelement <2 x i32> undef, i32 %param1, i32 1
|
|
%V4 = insertelement <4 x i32> undef, i32 %param1, i32 1
|
|
%S0 = insertvalue %struct.T undef, i64 %param0, 0
|
|
%S1 = insertvalue %struct.T %S0, <2 x i32> %V2, 1
|
|
%S2 = insertvalue %struct.T %S1, <4 x i32> %V4, 2
|
|
call void @test_call(%struct.T %S2)
|
|
ret void
|
|
}
|
|
|
|
define void @test_store_undef(ptr %out) {
|
|
; CHECK-LABEL: test_store_undef(
|
|
; CHECK: {
|
|
; CHECK-EMPTY:
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: ret;
|
|
store %struct.T undef, ptr %out
|
|
ret void
|
|
}
|
|
|
|
define void @test_store_def(i64 %param0, i32 %param1, ptr %out) {
|
|
; CHECK-LABEL: test_store_def(
|
|
; CHECK: {
|
|
; CHECK-NEXT: .reg .b32 %r<6>;
|
|
; CHECK-NEXT: .reg .b64 %rd<3>;
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: ld.param.b64 %rd1, [test_store_def_param_0];
|
|
; CHECK-NEXT: ld.param.b32 %r1, [test_store_def_param_1];
|
|
; CHECK-NEXT: ld.param.b64 %rd2, [test_store_def_param_2];
|
|
; CHECK-NEXT: st.v4.b32 [%rd2+16], {%r2, %r1, %r3, %r4};
|
|
; CHECK-NEXT: st.v2.b32 [%rd2+8], {%r5, %r1};
|
|
; CHECK-NEXT: st.b64 [%rd2], %rd1;
|
|
; CHECK-NEXT: ret;
|
|
%V2 = insertelement <2 x i32> undef, i32 %param1, i32 1
|
|
%V4 = insertelement <4 x i32> undef, i32 %param1, i32 1
|
|
%S0 = insertvalue %struct.T undef, i64 %param0, 0
|
|
%S1 = insertvalue %struct.T %S0, <2 x i32> %V2, 1
|
|
%S2 = insertvalue %struct.T %S1, <4 x i32> %V4, 2
|
|
store %struct.T %S2, ptr %out
|
|
ret void
|
|
}
|
|
|
|
define void @test_store_volatile_undef(ptr %out, <8 x i32> %vec) {
|
|
; CHECK-LABEL: test_store_volatile_undef(
|
|
; CHECK: {
|
|
; CHECK-NEXT: .reg .b32 %r<23>;
|
|
; CHECK-NEXT: .reg .b64 %rd<5>;
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: ld.param.b64 %rd1, [test_store_volatile_undef_param_0];
|
|
; CHECK-NEXT: st.volatile.v4.b32 [%rd1+16], {%r1, %r2, %r3, %r4};
|
|
; CHECK-NEXT: st.volatile.v2.b32 [%rd1+8], {%r5, %r6};
|
|
; CHECK-NEXT: st.volatile.b64 [%rd1], %rd2;
|
|
; CHECK-NEXT: ld.param.v4.b32 {%r7, %r8, %r9, %r10}, [test_store_volatile_undef_param_1];
|
|
; CHECK-NEXT: ld.param.v4.b32 {%r11, %r12, %r13, %r14}, [test_store_volatile_undef_param_1+16];
|
|
; CHECK-NEXT: st.volatile.v4.b32 [%rd3], {%r11, %r12, %r13, %r14};
|
|
; CHECK-NEXT: st.volatile.v4.b32 [%rd4], {%r7, %r8, %r9, %r10};
|
|
; CHECK-NEXT: st.volatile.v4.b32 [%rd1+16], {%r15, %r16, %r17, %r18};
|
|
; CHECK-NEXT: st.volatile.v4.b32 [%rd1], {%r19, %r20, %r21, %r22};
|
|
; CHECK-NEXT: ret;
|
|
store volatile %struct.T undef, ptr %out
|
|
store volatile <8 x i32> %vec, ptr undef
|
|
store volatile <8 x i32> undef, ptr %out
|
|
ret void
|
|
}
|
|
|
|
define void @test_store_volatile_of_poison(ptr %out) {
|
|
; CHECK-LABEL: test_store_volatile_of_poison(
|
|
; CHECK: {
|
|
; CHECK-NEXT: .reg .b32 %r<7>;
|
|
; CHECK-NEXT: .reg .b64 %rd<3>;
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: ld.param.b64 %rd1, [test_store_volatile_of_poison_param_0];
|
|
; CHECK-NEXT: st.volatile.v4.b32 [%rd1+16], {%r1, %r2, %r3, %r4};
|
|
; CHECK-NEXT: st.volatile.v2.b32 [%rd1+8], {%r5, %r6};
|
|
; CHECK-NEXT: st.volatile.b64 [%rd1], %rd2;
|
|
; CHECK-NEXT: ret;
|
|
store volatile %struct.T poison, ptr %out
|
|
ret void
|
|
}
|
|
|
|
define void @test_store_volatile_to_poison(%struct.T %param) {
|
|
; CHECK-LABEL: test_store_volatile_to_poison(
|
|
; CHECK: {
|
|
; CHECK-NEXT: .reg .b32 %r<7>;
|
|
; CHECK-NEXT: .reg .b64 %rd<5>;
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: ld.param.b64 %rd1, [test_store_volatile_to_poison_param_0];
|
|
; CHECK-NEXT: ld.param.v2.b32 {%r1, %r2}, [test_store_volatile_to_poison_param_0+8];
|
|
; CHECK-NEXT: ld.param.v4.b32 {%r3, %r4, %r5, %r6}, [test_store_volatile_to_poison_param_0+16];
|
|
; CHECK-NEXT: st.volatile.v4.b32 [%rd2], {%r3, %r4, %r5, %r6};
|
|
; CHECK-NEXT: st.volatile.v2.b32 [%rd3], {%r1, %r2};
|
|
; CHECK-NEXT: st.volatile.b64 [%rd4], %rd1;
|
|
; CHECK-NEXT: ret;
|
|
store volatile %struct.T %param, ptr poison
|
|
ret void
|
|
}
|