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
89 lines
3.1 KiB
LLVM
89 lines
3.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=amdgcn-- < %s | FileCheck -check-prefix=SI %s
|
|
|
|
define amdgpu_ps void @i1_copy_from_loop(ptr addrspace(8) inreg %rsrc, i32 %tid) {
|
|
; SI-LABEL: i1_copy_from_loop:
|
|
; SI: ; %bb.0: ; %entry
|
|
; SI-NEXT: s_mov_b32 s14, 0
|
|
; SI-NEXT: s_mov_b64 s[4:5], 0
|
|
; SI-NEXT: ; implicit-def: $sgpr6_sgpr7
|
|
; SI-NEXT: ; implicit-def: $sgpr8_sgpr9
|
|
; SI-NEXT: s_branch .LBB0_3
|
|
; SI-NEXT: .LBB0_1: ; in Loop: Header=BB0_3 Depth=1
|
|
; SI-NEXT: ; implicit-def: $sgpr14
|
|
; SI-NEXT: .LBB0_2: ; %Flow
|
|
; SI-NEXT: ; in Loop: Header=BB0_3 Depth=1
|
|
; SI-NEXT: s_and_b64 s[12:13], exec, s[8:9]
|
|
; SI-NEXT: s_or_b64 s[4:5], s[12:13], s[4:5]
|
|
; SI-NEXT: s_andn2_b64 s[6:7], s[6:7], exec
|
|
; SI-NEXT: s_and_b64 s[10:11], s[10:11], exec
|
|
; SI-NEXT: s_or_b64 s[6:7], s[6:7], s[10:11]
|
|
; SI-NEXT: s_andn2_b64 exec, exec, s[4:5]
|
|
; SI-NEXT: s_cbranch_execz .LBB0_7
|
|
; SI-NEXT: .LBB0_3: ; %for.body
|
|
; SI-NEXT: ; =>This Inner Loop Header: Depth=1
|
|
; SI-NEXT: s_cmp_lt_u32 s14, 4
|
|
; SI-NEXT: s_cselect_b64 s[10:11], -1, 0
|
|
; SI-NEXT: s_or_b64 s[8:9], s[8:9], exec
|
|
; SI-NEXT: s_cmp_gt_u32 s14, 3
|
|
; SI-NEXT: s_cbranch_scc1 .LBB0_1
|
|
; SI-NEXT: ; %bb.4: ; %mid.loop
|
|
; SI-NEXT: ; in Loop: Header=BB0_3 Depth=1
|
|
; SI-NEXT: v_mov_b32_e32 v1, s14
|
|
; SI-NEXT: buffer_load_dword v1, v[0:1], s[0:3], 0 idxen offen
|
|
; SI-NEXT: s_mov_b64 s[10:11], -1
|
|
; SI-NEXT: s_waitcnt vmcnt(0)
|
|
; SI-NEXT: v_cmp_le_f32_e32 vcc, 0, v1
|
|
; SI-NEXT: s_mov_b64 s[8:9], -1
|
|
; SI-NEXT: s_and_saveexec_b64 s[12:13], vcc
|
|
; SI-NEXT: s_cbranch_execz .LBB0_6
|
|
; SI-NEXT: ; %bb.5: ; %end.loop
|
|
; SI-NEXT: ; in Loop: Header=BB0_3 Depth=1
|
|
; SI-NEXT: s_add_i32 s14, s14, 1
|
|
; SI-NEXT: s_xor_b64 s[8:9], exec, -1
|
|
; SI-NEXT: .LBB0_6: ; %Flow1
|
|
; SI-NEXT: ; in Loop: Header=BB0_3 Depth=1
|
|
; SI-NEXT: s_or_b64 exec, exec, s[12:13]
|
|
; SI-NEXT: s_branch .LBB0_2
|
|
; SI-NEXT: .LBB0_7: ; %for.end
|
|
; SI-NEXT: s_or_b64 exec, exec, s[4:5]
|
|
; SI-NEXT: s_and_saveexec_b64 s[0:1], s[6:7]
|
|
; SI-NEXT: s_cbranch_execz .LBB0_9
|
|
; SI-NEXT: ; %bb.8: ; %if
|
|
; SI-NEXT: exp mrt0, v0, v0, v0, v0 done vm
|
|
; SI-NEXT: .LBB0_9: ; %end
|
|
; SI-NEXT: s_endpgm
|
|
entry:
|
|
br label %for.body
|
|
|
|
for.body:
|
|
%i = phi i32 [0, %entry], [%i.inc, %end.loop]
|
|
%cc = icmp ult i32 %i, 4
|
|
br i1 %cc, label %mid.loop, label %for.end
|
|
|
|
mid.loop:
|
|
%v = call float @llvm.amdgcn.struct.ptr.buffer.load.f32(ptr addrspace(8) %rsrc, i32 %tid, i32 %i, i32 0, i32 0)
|
|
%cc2 = fcmp oge float %v, 0.0
|
|
br i1 %cc2, label %end.loop, label %for.end
|
|
|
|
end.loop:
|
|
%i.inc = add i32 %i, 1
|
|
br label %for.body
|
|
|
|
for.end:
|
|
br i1 %cc, label %if, label %end
|
|
|
|
if:
|
|
call void @llvm.amdgcn.exp.f32(i32 0, i32 15, float poison, float poison, float poison, float poison, i1 true, i1 true)
|
|
br label %end
|
|
|
|
end:
|
|
ret void
|
|
}
|
|
|
|
declare float @llvm.amdgcn.struct.ptr.buffer.load.f32(ptr addrspace(8), i32, i32, i32, i32 immarg) #0
|
|
declare void @llvm.amdgcn.exp.f32(i32, i32, float, float, float, float, i1, i1) #1
|
|
|
|
attributes #0 = { nounwind memory(argmem: read) }
|
|
attributes #1 = { nounwind inaccessiblememonly }
|