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
73 lines
2.1 KiB
LLVM
73 lines
2.1 KiB
LLVM
; The goal of the test is to check that internal intrinsic functions for PHI's
|
|
; operand are inserted at the correct positions, and don't break rules of
|
|
; instruction domination and PHI nodes grouping at top of basic block.
|
|
|
|
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
|
|
|
|
; CHECK-DAG: OpName %[[#Foo:]] "foo"
|
|
; CHECK-DAG: OpName %[[#Bar:]] "bar"
|
|
; CHECK: %[[#Foo]] = OpFunction
|
|
; CHECK: OpPhi
|
|
; CHECK-NEXT: OpPhi
|
|
; CHECK-NEXT: OpPhi
|
|
; CHECK-NEXT: OpPhi
|
|
; CHECK: %[[#Bar]] = OpFunction
|
|
; CHECK: OpPhi
|
|
; CHECK-NEXT: OpPhi
|
|
; CHECK-NEXT: OpPhi
|
|
; CHECK-NEXT: OpPhi
|
|
|
|
%struct = type { i64, i64 }
|
|
|
|
define spir_kernel void @foo(i64 %arg_val, ptr addrspace(4) byval(%struct) %arg_ptr) {
|
|
entry:
|
|
%fl = icmp eq i64 %arg_val, 0
|
|
br i1 %fl, label %ok, label %err
|
|
|
|
err:
|
|
br label %ok
|
|
|
|
ok:
|
|
%r1 = phi i64 [ undef, %err ], [ %arg_val, %entry ]
|
|
%r2 = phi i64 [ undef, %err ], [ %arg_val, %entry ]
|
|
%r3 = phi ptr addrspace(4) [ undef, %err ], [ %arg_ptr, %entry ]
|
|
%r4 = phi ptr addrspace(4) [ undef, %err ], [ %arg_ptr, %entry ]
|
|
br label %exit
|
|
|
|
exit:
|
|
store i64 %r1, ptr @g1
|
|
store i64 %r2, ptr @g2
|
|
store ptr addrspace(4) %r3, ptr @g3
|
|
store ptr addrspace(4) %r4, ptr @g4
|
|
ret void
|
|
}
|
|
|
|
@g1 = internal global i64 0
|
|
@g2 = internal global i64 0
|
|
@g3 = internal global ptr addrspace(4) null
|
|
@g4 = internal global ptr addrspace(4) null
|
|
|
|
define spir_kernel void @bar(i64 %arg_val, i64 %arg_val_def, ptr addrspace(4) byval(%struct) %arg_ptr, ptr addrspace(4) %arg_ptr_def) {
|
|
entry:
|
|
%fl = icmp eq i64 %arg_val, 0
|
|
br i1 %fl, label %ok, label %err
|
|
|
|
err:
|
|
br label %ok
|
|
|
|
ok:
|
|
%r1 = phi i64 [ %arg_val_def, %err ], [ %arg_val, %entry ]
|
|
%r2 = phi i64 [ %arg_val_def, %err ], [ %arg_val, %entry ]
|
|
%r3 = phi ptr addrspace(4) [ %arg_ptr_def, %err ], [ %arg_ptr, %entry ]
|
|
%r4 = phi ptr addrspace(4) [ %arg_ptr_def, %err ], [ %arg_ptr, %entry ]
|
|
br label %exit
|
|
|
|
exit:
|
|
store i64 %r1, ptr @g1
|
|
store i64 %r2, ptr @g2
|
|
store ptr addrspace(4) %r3, ptr @g3
|
|
store ptr addrspace(4) %r4, ptr @g4
|
|
ret void
|
|
}
|