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
66 lines
2.5 KiB
LLVM
66 lines
2.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=thumbv8m.base-none-eabi %s -o - | FileCheck %s --check-prefix=CHECK-T1
|
|
; RUN: llc < %s -mtriple=thumbv8m.main-none-eabi %s -o - | FileCheck %s --check-prefix=CHECK-T2
|
|
|
|
define ptr @test(ptr returned %this, i32 %event_size, ptr %event_pointer) {
|
|
; CHECK-T1-LABEL: test:
|
|
; CHECK-T1: @ %bb.0: @ %entry
|
|
; CHECK-T1-NEXT: .save {r4, lr}
|
|
; CHECK-T1-NEXT: push {r4, lr}
|
|
; CHECK-T1-NEXT: mov r4, r0
|
|
; CHECK-T1-NEXT: movs r0, #0
|
|
; CHECK-T1-NEXT: str r0, [r4, #4]
|
|
; CHECK-T1-NEXT: str r0, [r4, #8]
|
|
; CHECK-T1-NEXT: str r0, [r4, #12]
|
|
; CHECK-T1-NEXT: str r0, [r4, #16]
|
|
; CHECK-T1-NEXT: mov r0, r4
|
|
; CHECK-T1-NEXT: cbz r2, .LBB0_2
|
|
; CHECK-T1-NEXT: @ %bb.1: @ %if.else
|
|
; CHECK-T1-NEXT: bl equeue_create_inplace
|
|
; CHECK-T1-NEXT: mov r0, r4
|
|
; CHECK-T1-NEXT: pop {r4, pc}
|
|
; CHECK-T1-NEXT: .LBB0_2: @ %if.then
|
|
; CHECK-T1-NEXT: bl equeue_create
|
|
; CHECK-T1-NEXT: mov r0, r4
|
|
; CHECK-T1-NEXT: pop {r4, pc}
|
|
;
|
|
; CHECK-T2-LABEL: test:
|
|
; CHECK-T2: @ %bb.0: @ %entry
|
|
; CHECK-T2-NEXT: .save {r4, lr}
|
|
; CHECK-T2-NEXT: push {r4, lr}
|
|
; CHECK-T2-NEXT: mov r4, r0
|
|
; CHECK-T2-NEXT: movs r0, #0
|
|
; CHECK-T2-NEXT: strd r0, r0, [r4, #4]
|
|
; CHECK-T2-NEXT: strd r0, r0, [r4, #12]
|
|
; CHECK-T2-NEXT: mov r0, r4
|
|
; CHECK-T2-NEXT: cbz r2, .LBB0_2
|
|
; CHECK-T2-NEXT: @ %bb.1: @ %if.else
|
|
; CHECK-T2-NEXT: bl equeue_create_inplace
|
|
; CHECK-T2-NEXT: mov r0, r4
|
|
; CHECK-T2-NEXT: pop {r4, pc}
|
|
; CHECK-T2-NEXT: .LBB0_2: @ %if.then
|
|
; CHECK-T2-NEXT: bl equeue_create
|
|
; CHECK-T2-NEXT: mov r0, r4
|
|
; CHECK-T2-NEXT: pop {r4, pc}
|
|
entry:
|
|
%_update = getelementptr inbounds i32, ptr %this, i32 1
|
|
tail call void @llvm.memset.p0.i32(ptr nonnull align 4 %_update, i8 0, i32 16, i1 false) #4
|
|
%tobool = icmp eq ptr %event_pointer, null
|
|
br i1 %tobool, label %if.then, label %if.else
|
|
|
|
if.then: ; preds = %entry
|
|
%call4 = tail call i32 @equeue_create(ptr %this, i32 %event_size) #5
|
|
br label %if.end
|
|
|
|
if.else: ; preds = %entry
|
|
%call6 = tail call i32 @equeue_create_inplace(ptr %this, i32 %event_size, ptr nonnull %event_pointer) #5
|
|
br label %if.end
|
|
|
|
if.end: ; preds = %if.else, %if.then
|
|
ret ptr %this
|
|
}
|
|
|
|
declare dso_local i32 @equeue_create(ptr, i32) local_unnamed_addr #1
|
|
declare dso_local i32 @equeue_create_inplace(ptr, i32, ptr) local_unnamed_addr #1
|
|
declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #2
|