Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/ARM/align-sp-adjustment.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

47 lines
1.6 KiB
LLVM

; RUN: llc -mtriple=thumbv7 -o - %s | FileCheck %s
; CHECK: [sp, #2120]
%struct.struct_2 = type { [172 x %struct.struct_1] }
%struct.struct_1 = type { i32, i32, i32 }
@.str = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"b\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"d\00", align 1
declare ptr @_Z4bar3iiPKcS0_i(i32, i32, ptr, ptr, i32)
declare void @_Z4bar1i8struct_2(i32, ptr byval(%struct.struct_2) align 4)
declare i32 @_Z4bar2PiPKc(ptr, ptr)
define void @_Z3fooiiiii(i32 %p1, i32 %p2, i32 %p3, i32 %p4, i32 %p5) #0 {
entry:
%params = alloca %struct.struct_2, align 4
br label %for.body
for.body:
%i.015 = phi i32 [ 0, %entry ], [ %inc, %for.inc ]
%call = tail call ptr @_Z4bar3iiPKcS0_i(i32 %p1, i32 %p5, ptr @.str, ptr @.str.1, i32 %i.015) #4
%cmp1 = icmp eq ptr %call, null
br i1 %cmp1, label %cleanup.8, label %for.inc
for.inc:
%call2 = tail call i32 @_Z4bar2PiPKc(ptr %call, ptr @.str.2) #4
%f1 = getelementptr inbounds %struct.struct_2, ptr %params, i32 0, i32 0, i32 %i.015, i32 0
store i32 %call2, ptr %f1, align 4
%call3 = tail call i32 @_Z4bar2PiPKc(ptr %call, ptr @.str.3) #4
%f2 = getelementptr inbounds %struct.struct_2, ptr %params, i32 0, i32 0, i32 %i.015, i32 1
store i32 %call3, ptr %f2, align 4
%inc = add nuw nsw i32 %i.015, 1
%cmp = icmp slt i32 %inc, 4
br i1 %cmp, label %for.body, label %for.end
for.end:
call void @_Z4bar1i8struct_2(i32 %p4, ptr byval(%struct.struct_2) nonnull align 4 %params) #4
br label %cleanup.8
cleanup.8:
ret void
}