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
45 lines
1.2 KiB
LLVM
45 lines
1.2 KiB
LLVM
; RUN: llc < %s -mtriple=riscv64 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=riscv64 -align-loops=16 | FileCheck %s -check-prefix=ALIGN_16
|
|
; RUN: llc < %s -mtriple=riscv64 -align-loops=32 | FileCheck %s -check-prefix=ALIGN_32
|
|
|
|
declare void @foo()
|
|
|
|
define void @test(i32 %n, i32 %m) nounwind {
|
|
; CHECK-LABEL: test:
|
|
; CHECK-NOT: .p2align
|
|
; CHECK: ret
|
|
|
|
; ALIGN_16-LABEL: test:
|
|
; ALIGN_16: .p2align 4{{$}}
|
|
; ALIGN_16-NEXT: .LBB0_1: # %outer
|
|
; ALIGN_16: .p2align 4{{$}}
|
|
; ALIGN_16-NEXT: .LBB0_2: # %inner
|
|
|
|
; ALIGN_32-LABEL: test:
|
|
; ALIGN_32: .p2align 5{{$}}
|
|
; ALIGN_32-NEXT: .LBB0_1: # %outer
|
|
; ALIGN_32: .p2align 5{{$}}
|
|
; ALIGN_32-NEXT: .LBB0_2: # %inner
|
|
entry:
|
|
br label %outer
|
|
|
|
outer:
|
|
%outer.iv = phi i32 [0, %entry], [%outer.iv.next, %outer_bb]
|
|
br label %inner
|
|
|
|
inner:
|
|
%inner.iv = phi i32 [0, %outer], [%inner.iv.next, %inner]
|
|
call void @foo()
|
|
%inner.iv.next = add i32 %inner.iv, 1
|
|
%inner.cond = icmp ne i32 %inner.iv.next, %m
|
|
br i1 %inner.cond, label %inner, label %outer_bb
|
|
|
|
outer_bb:
|
|
%outer.iv.next = add i32 %outer.iv, 1
|
|
%outer.cond = icmp ne i32 %outer.iv.next, %n
|
|
br i1 %outer.cond, label %outer, label %exit
|
|
|
|
exit:
|
|
ret void
|
|
}
|