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
177 lines
5.2 KiB
LLVM
177 lines
5.2 KiB
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
declare void @callee0()
|
|
declare void @callee1(i32,i32)
|
|
|
|
define void @f0(i32* %ptr) {
|
|
; CHECK-LABEL: @f0(
|
|
entry:
|
|
%l = load i32, i32* %ptr
|
|
%x = add i32 42, 1
|
|
call void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "bar"(float 0.000000e+00, i64 100, i32 %l) ]
|
|
; CHECK: call void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "bar"(float 0.000000e+00, i64 100, i32 %l) ]
|
|
ret void
|
|
}
|
|
|
|
define void @f1(i32* %ptr) {
|
|
; CHECK-LABEL: @f1(
|
|
entry:
|
|
%l = load i32, i32* %ptr
|
|
%x = add i32 42, 1
|
|
|
|
call void @callee0()
|
|
call void @callee0() [ "foo"() ]
|
|
call void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "bar"(float 0.000000e+00, i64 100, i32 %l) ]
|
|
; CHECK: @callee0(){{$}}
|
|
; CHECK-NEXT: call void @callee0() [ "foo"() ]
|
|
; CHECK-NEXT: call void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "bar"(float 0.000000e+00, i64 100, i32 %l) ]
|
|
ret void
|
|
}
|
|
|
|
define void @f2(i32* %ptr) {
|
|
; CHECK-LABEL: @f2(
|
|
entry:
|
|
call void @callee0() [ "foo"() ]
|
|
; CHECK: call void @callee0() [ "foo"() ]
|
|
ret void
|
|
}
|
|
|
|
define void @f3(i32* %ptr) {
|
|
; CHECK-LABEL: @f3(
|
|
entry:
|
|
%l = load i32, i32* %ptr
|
|
%x = add i32 42, 1
|
|
call void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ]
|
|
; CHECK: call void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ]
|
|
ret void
|
|
}
|
|
|
|
define void @f4(i32* %ptr) {
|
|
; CHECK-LABEL: @f4(
|
|
entry:
|
|
%l = load i32, i32* %ptr
|
|
%x = add i32 42, 1
|
|
call void @callee1(i32 10, i32 %x) [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ]
|
|
; CHECK: call void @callee1(i32 10, i32 %x) [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ]
|
|
ret void
|
|
}
|
|
|
|
define void @f5(i32 %x) {
|
|
entry:
|
|
call void @callee1(i32 10, i32 %x) [ "foo"(i32 42, metadata !"abc"), "bar"(metadata !"abcde", metadata !"qwerty") ]
|
|
; CHECK: call void @callee1(i32 10, i32 %x) [ "foo"(i32 42, metadata !"abc"), "bar"(metadata !"abcde", metadata !"qwerty") ]
|
|
ret void
|
|
}
|
|
|
|
; Invoke versions of the above tests:
|
|
|
|
|
|
define void @g0(i32* %ptr) personality i8 3 {
|
|
; CHECK-LABEL: @g0(
|
|
entry:
|
|
%l = load i32, i32* %ptr
|
|
%x = add i32 42, 1
|
|
invoke void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "bar"(float 0.000000e+00, i64 100, i32 %l) ] to label %normal unwind label %exception
|
|
; CHECK: invoke void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "bar"(float 0.000000e+00, i64 100, i32 %l) ]
|
|
|
|
exception:
|
|
%cleanup = landingpad i8 cleanup
|
|
br label %normal
|
|
normal:
|
|
ret void
|
|
}
|
|
|
|
define void @g1(i32* %ptr) personality i8 3 {
|
|
; CHECK-LABEL: @g1(
|
|
entry:
|
|
%l = load i32, i32* %ptr
|
|
%x = add i32 42, 1
|
|
|
|
invoke void @callee0() to label %normal unwind label %exception
|
|
; CHECK: invoke void @callee0(){{$}}
|
|
|
|
exception:
|
|
%cleanup = landingpad i8 cleanup
|
|
br label %normal
|
|
|
|
normal:
|
|
invoke void @callee0() [ "foo"() ] to label %normal1 unwind label %exception1
|
|
; CHECK: invoke void @callee0() [ "foo"() ]
|
|
|
|
exception1:
|
|
%cleanup1 = landingpad i8 cleanup
|
|
br label %normal1
|
|
|
|
normal1:
|
|
invoke void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ] to label %normal2 unwind label %exception2
|
|
; CHECK: invoke void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ]
|
|
|
|
exception2:
|
|
%cleanup2 = landingpad i8 cleanup
|
|
br label %normal2
|
|
|
|
normal2:
|
|
ret void
|
|
}
|
|
|
|
define void @g2(i32* %ptr) personality i8 3 {
|
|
; CHECK-LABEL: @g2(
|
|
entry:
|
|
invoke void @callee0() [ "foo"() ] to label %normal unwind label %exception
|
|
; CHECK: invoke void @callee0() [ "foo"() ]
|
|
|
|
exception:
|
|
%cleanup = landingpad i8 cleanup
|
|
br label %normal
|
|
normal:
|
|
ret void
|
|
}
|
|
|
|
define void @g3(i32* %ptr) personality i8 3 {
|
|
; CHECK-LABEL: @g3(
|
|
entry:
|
|
%l = load i32, i32* %ptr
|
|
%x = add i32 42, 1
|
|
invoke void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ] to label %normal unwind label %exception
|
|
; CHECK: invoke void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ]
|
|
|
|
exception:
|
|
%cleanup = landingpad i8 cleanup
|
|
br label %normal
|
|
normal:
|
|
ret void
|
|
}
|
|
|
|
define void @g4(i32* %ptr) personality i8 3 {
|
|
; CHECK-LABEL: @g4(
|
|
entry:
|
|
%l = load i32, i32* %ptr
|
|
%x = add i32 42, 1
|
|
invoke void @callee1(i32 10, i32 %x) [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ]
|
|
to label %normal unwind label %exception
|
|
; CHECK: invoke void @callee1(i32 10, i32 %x) [ "foo"(i32 42, i64 100, i32 %x), "foo"(i32 42, float 0.000000e+00, i32 %l) ]
|
|
|
|
exception:
|
|
%cleanup = landingpad i8 cleanup
|
|
br label %normal
|
|
normal:
|
|
ret void
|
|
}
|
|
|
|
define void @g5(ptr %ptr) personality i8 3 {
|
|
entry:
|
|
%l = load i32, ptr %ptr, align 4
|
|
%x = add i32 42, 1
|
|
invoke void @callee1(i32 10, i32 %x) [ "foo"(i32 42, metadata !"abc"), "bar"(metadata !"abcde", metadata !"qwerty") ]
|
|
to label %normal unwind label %exception
|
|
; CHECK: invoke void @callee1(i32 10, i32 %x) [ "foo"(i32 42, metadata !"abc"), "bar"(metadata !"abcde", metadata !"qwerty") ]
|
|
|
|
exception: ; preds = %entry
|
|
%cleanup = landingpad i8
|
|
cleanup
|
|
br label %normal
|
|
|
|
normal: ; preds = %exception, %entry
|
|
ret void
|
|
}
|