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
113 lines
6.3 KiB
LLVM
113 lines
6.3 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llubi_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: llubi --verbose < %s 2>&1 | FileCheck %s
|
|
|
|
define i32 @callee() {
|
|
ret i32 10
|
|
}
|
|
|
|
define float @callee_fp() {
|
|
ret float 0.0
|
|
}
|
|
|
|
define ptr @callee_ptr(ptr %x) {
|
|
ret ptr %x
|
|
}
|
|
|
|
define void @main() {
|
|
%alloc = alloca i32
|
|
store i32 1, ptr %alloc
|
|
%range_load_valid = load i32, ptr %alloc, !noundef !{}, !range !{i32 0, i32 10}
|
|
%range_load_invalid = load i32, ptr %alloc, !range !{i32 2, i32 10}
|
|
%alloc_vec = alloca <8 x i32>
|
|
store <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>, ptr %alloc_vec
|
|
%range_list_load_vec = load <8 x i32>, ptr %alloc_vec, !range !{i32 3, i32 4, i32 5, i32 6, i32 7, i32 2}
|
|
store float 0.0, ptr %alloc
|
|
%nofpclass_load_valid = load float, ptr %alloc, !noundef !{}, !nofpclass !{i32 3}
|
|
%nofpclass_load_invalid = load float, ptr %alloc, !nofpclass !{i32 99}
|
|
|
|
%alloc_ptr = alloca ptr
|
|
store ptr %alloc_ptr, ptr %alloc_ptr
|
|
%align_nonnull_load_valid = load ptr, ptr %alloc_ptr, !nonnull !{}, !align !{i32 8}, !noundef !{}, !dereferenceable !{i32 8}, !dereferenceable_or_null !{i32 8}
|
|
store ptr null, ptr %alloc_ptr
|
|
%align_load_valid = load ptr, ptr %alloc_ptr, !align !{i32 8}, !noundef !{}, !dereferenceable_or_null !{i32 8}
|
|
%nonnull_load_invalid = load ptr, ptr %alloc_ptr, !nonnull !{}
|
|
|
|
%range_call_valid = call i32 @callee(), !noundef !{}, !range !{i32 0, i32 11}
|
|
%range_call_invalid = call i32 @callee(), !range !{i32 0, i32 10}
|
|
%nofpclass_call_valid = call float @callee_fp(), !noundef !{}, !nofpclass !{i32 3}
|
|
%nofpclass_call_invalid = call float @callee_fp(), !nofpclass !{i32 99}
|
|
%nonnull_align_call_valid = call ptr @callee_ptr(ptr %alloc_ptr), !nonnull !{}, !align !{i32 8}, !noundef !{}
|
|
%align_call_invalid = call ptr @callee_ptr(ptr null), !align !{i32 8}, !noundef !{}
|
|
%nonnull_call_invalid = call ptr @callee_ptr(ptr null), !nonnull !{}
|
|
|
|
%dereferenceable_call_valid = call ptr @callee_ptr(ptr %alloc_ptr), !dereferenceable !{i32 8}
|
|
%dereferenceable_or_null_call_valid1 = call ptr @callee_ptr(ptr %alloc_ptr), !dereferenceable_or_null !{i32 8}
|
|
%dereferenceable_or_null_call_valid2 = call ptr @callee_ptr(ptr null), !dereferenceable_or_null !{i32 8}
|
|
ret void
|
|
}
|
|
; CHECK: Entering function: main
|
|
; CHECK-NEXT: %alloc = alloca i32, align 4 => ptr 0x8 [alloc]
|
|
; CHECK-NEXT: store i32 1, ptr %alloc, align 4
|
|
; CHECK-NEXT: %range_load_valid = load i32, ptr %alloc, align 4, !range !0, !noundef !1 => i32 1
|
|
; CHECK-NEXT: %range_load_invalid = load i32, ptr %alloc, align 4, !range !2 => poison
|
|
; CHECK-NEXT: %alloc_vec = alloca <8 x i32>, align 32 => ptr 0x20 [alloc_vec]
|
|
; CHECK-NEXT: store <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>, ptr %alloc_vec, align 32
|
|
; CHECK-NEXT: %range_list_load_vec = load <8 x i32>, ptr %alloc_vec, align 32, !range !3 => { i32 0, i32 1, poison, i32 3, poison, i32 5, poison, i32 7 }
|
|
; CHECK-NEXT: store float 0.000000e+00, ptr %alloc, align 4
|
|
; CHECK-NEXT: %nofpclass_load_valid = load float, ptr %alloc, align 4, !noundef !1, !nofpclass !4 => float 0.000000e+00
|
|
; CHECK-NEXT: %nofpclass_load_invalid = load float, ptr %alloc, align 4, !nofpclass !5 => poison
|
|
; CHECK-NEXT: %alloc_ptr = alloca ptr, align 8 => ptr 0x40 [alloc_ptr]
|
|
; CHECK-NEXT: store ptr %alloc_ptr, ptr %alloc_ptr, align 8
|
|
; CHECK-NEXT: %align_nonnull_load_valid = load ptr, ptr %alloc_ptr, align 8, !nonnull !1, !dereferenceable !6, !dereferenceable_or_null !6, !align !6, !noundef !1 => ptr 0x40 [alloc_ptr]
|
|
; CHECK-NEXT: store ptr null, ptr %alloc_ptr, align 8
|
|
; CHECK-NEXT: %align_load_valid = load ptr, ptr %alloc_ptr, align 8, !dereferenceable_or_null !6, !align !6, !noundef !1 => ptr 0x0 [nullary]
|
|
; CHECK-NEXT: %nonnull_load_invalid = load ptr, ptr %alloc_ptr, align 8, !nonnull !1 => poison
|
|
; CHECK-NEXT: Entering function: callee
|
|
; CHECK-NEXT: ret i32 10
|
|
; CHECK-NEXT: Exiting function: callee
|
|
; CHECK-NEXT: %range_call_valid = call i32 @callee(), !range !7, !noundef !1 => i32 10
|
|
; CHECK-NEXT: Entering function: callee
|
|
; CHECK-NEXT: ret i32 10
|
|
; CHECK-NEXT: Exiting function: callee
|
|
; CHECK-NEXT: %range_call_invalid = call i32 @callee(), !range !0 => poison
|
|
; CHECK-NEXT: Entering function: callee_fp
|
|
; CHECK-NEXT: ret float 0.000000e+00
|
|
; CHECK-NEXT: Exiting function: callee_fp
|
|
; CHECK-NEXT: %nofpclass_call_valid = call float @callee_fp(), !noundef !1, !nofpclass !4 => float 0.000000e+00
|
|
; CHECK-NEXT: Entering function: callee_fp
|
|
; CHECK-NEXT: ret float 0.000000e+00
|
|
; CHECK-NEXT: Exiting function: callee_fp
|
|
; CHECK-NEXT: %nofpclass_call_invalid = call float @callee_fp(), !nofpclass !5 => poison
|
|
; CHECK-NEXT: Entering function: callee_ptr
|
|
; CHECK-NEXT: ptr %x = ptr 0x40 [alloc_ptr]
|
|
; CHECK-NEXT: ret ptr %x
|
|
; CHECK-NEXT: Exiting function: callee_ptr
|
|
; CHECK-NEXT: %nonnull_align_call_valid = call ptr @callee_ptr(ptr %alloc_ptr), !nonnull !1, !align !6, !noundef !1 => ptr 0x40 [alloc_ptr]
|
|
; CHECK-NEXT: Entering function: callee_ptr
|
|
; CHECK-NEXT: ptr %x = ptr 0x0 [nullary]
|
|
; CHECK-NEXT: ret ptr %x
|
|
; CHECK-NEXT: Exiting function: callee_ptr
|
|
; CHECK-NEXT: %align_call_invalid = call ptr @callee_ptr(ptr null), !align !6, !noundef !1 => ptr 0x0 [nullary]
|
|
; CHECK-NEXT: Entering function: callee_ptr
|
|
; CHECK-NEXT: ptr %x = ptr 0x0 [nullary]
|
|
; CHECK-NEXT: ret ptr %x
|
|
; CHECK-NEXT: Exiting function: callee_ptr
|
|
; CHECK-NEXT: %nonnull_call_invalid = call ptr @callee_ptr(ptr null), !nonnull !1 => poison
|
|
; CHECK-NEXT: Entering function: callee_ptr
|
|
; CHECK-NEXT: ptr %x = ptr 0x40 [alloc_ptr]
|
|
; CHECK-NEXT: ret ptr %x
|
|
; CHECK-NEXT: Exiting function: callee_ptr
|
|
; CHECK-NEXT: %dereferenceable_call_valid = call ptr @callee_ptr(ptr %alloc_ptr), !dereferenceable !6 => ptr 0x40 [alloc_ptr]
|
|
; CHECK-NEXT: Entering function: callee_ptr
|
|
; CHECK-NEXT: ptr %x = ptr 0x40 [alloc_ptr]
|
|
; CHECK-NEXT: ret ptr %x
|
|
; CHECK-NEXT: Exiting function: callee_ptr
|
|
; CHECK-NEXT: %dereferenceable_or_null_call_valid1 = call ptr @callee_ptr(ptr %alloc_ptr), !dereferenceable_or_null !6 => ptr 0x40 [alloc_ptr]
|
|
; CHECK-NEXT: Entering function: callee_ptr
|
|
; CHECK-NEXT: ptr %x = ptr 0x0 [nullary]
|
|
; CHECK-NEXT: ret ptr %x
|
|
; CHECK-NEXT: Exiting function: callee_ptr
|
|
; CHECK-NEXT: %dereferenceable_or_null_call_valid2 = call ptr @callee_ptr(ptr null), !dereferenceable_or_null !6 => ptr 0x0 [nullary]
|
|
; CHECK-NEXT: ret void
|
|
; CHECK-NEXT: Exiting function: main
|