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
40 lines
1.1 KiB
LLVM
40 lines
1.1 KiB
LLVM
; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s
|
|
|
|
; CodeGen should align the top of the loop, which differs from the loop
|
|
; header in this case.
|
|
|
|
; CHECK: jmp LBB0_2
|
|
; CHECK: .p2align
|
|
; CHECK: LBB0_1:
|
|
|
|
@A = common global [100 x i32] zeroinitializer, align 32 ; <ptr> [#uses=1]
|
|
|
|
define ptr @test(ptr %Q, ptr %L) nounwind {
|
|
entry:
|
|
%tmp = tail call i32 (...) @foo() nounwind ; <i32> [#uses=2]
|
|
%tmp1 = inttoptr i32 %tmp to ptr ; <ptr> [#uses=1]
|
|
br label %bb1
|
|
|
|
bb: ; preds = %bb1, %bb1
|
|
%indvar.next = add i32 %P.0.rec, 1 ; <i32> [#uses=1]
|
|
br label %bb1
|
|
|
|
bb1: ; preds = %bb, %entry
|
|
%P.0.rec = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=2]
|
|
%P.0 = getelementptr i8, ptr %tmp1, i32 %P.0.rec ; <ptr> [#uses=3]
|
|
%tmp2 = load i8, ptr %P.0, align 1 ; <i8> [#uses=1]
|
|
switch i8 %tmp2, label %bb4 [
|
|
i8 12, label %bb
|
|
i8 42, label %bb
|
|
]
|
|
|
|
bb4: ; preds = %bb1
|
|
%tmp3 = ptrtoint ptr %P.0 to i32 ; <i32> [#uses=1]
|
|
%tmp4 = sub i32 %tmp3, %tmp ; <i32> [#uses=1]
|
|
%tmp5 = getelementptr [100 x i32], ptr @A, i32 0, i32 %tmp4 ; <ptr> [#uses=1]
|
|
store i32 4, ptr %tmp5, align 4
|
|
ret ptr %P.0
|
|
}
|
|
|
|
declare i32 @foo(...)
|