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
92 lines
3.3 KiB
LLVM
92 lines
3.3 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc --force-dwarf-frame-section %s -o - | FileCheck %s
|
|
target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
|
|
target triple = "thumbv8.1m.main-arm-none-eabi"
|
|
|
|
%"struct.std::__va_list" = type { ptr }
|
|
|
|
define hidden i32 @_Z1fiz(i32 %n, ...) local_unnamed_addr #0 {
|
|
; CHECK-LABEL: _Z1fiz:
|
|
; CHECK: .cfi_sections .debug_frame
|
|
; CHECK-NEXT: .cfi_startproc
|
|
; CHECK-NEXT: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: pac r12, lr, sp
|
|
; CHECK-NEXT: .pad #12
|
|
; CHECK-NEXT: sub sp, #12
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 12
|
|
; CHECK-NEXT: .save {r7, ra_auth_code, lr}
|
|
; CHECK-NEXT: push.w {r7, r12, lr}
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 24
|
|
; CHECK-NEXT: .cfi_offset lr, -16
|
|
; CHECK-NEXT: .cfi_offset ra_auth_code, -20
|
|
; CHECK-NEXT: .cfi_offset r7, -24
|
|
; CHECK-NEXT: .pad #4
|
|
; CHECK-NEXT: sub sp, #4
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 28
|
|
; CHECK-NEXT: add.w r12, sp, #16
|
|
; CHECK-NEXT: cmp r0, #1
|
|
; CHECK-NEXT: stm.w r12, {r1, r2, r3}
|
|
; CHECK-NEXT: add r1, sp, #16
|
|
; CHECK-NEXT: str r1, [sp]
|
|
; CHECK-NEXT: blt .LBB0_3
|
|
; CHECK-NEXT: @ %bb.1: @ %for.body.lr.ph
|
|
; CHECK-NEXT: ldr r1, [sp]
|
|
; CHECK-NEXT: dls lr, r0
|
|
; CHECK-NEXT: movs r0, #0
|
|
; CHECK-NEXT: adds r1, #4
|
|
; CHECK-NEXT: .LBB0_2: @ %for.body
|
|
; CHECK-NEXT: @ =>This Inner Loop Header: Depth=1
|
|
; CHECK-NEXT: str r1, [sp]
|
|
; CHECK-NEXT: ldr r2, [r1, #-4]
|
|
; CHECK-NEXT: adds r1, #4
|
|
; CHECK-NEXT: add r0, r2
|
|
; CHECK-NEXT: le lr, .LBB0_2
|
|
; CHECK-NEXT: b .LBB0_4
|
|
; CHECK-NEXT: .LBB0_3:
|
|
; CHECK-NEXT: movs r0, #0
|
|
; CHECK-NEXT: .LBB0_4: @ %for.cond.cleanup
|
|
; CHECK-NEXT: add sp, #4
|
|
; CHECK-NEXT: pop.w {r7, r12, lr}
|
|
; CHECK-NEXT: add sp, #12
|
|
; CHECK-NEXT: aut r12, lr, sp
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
%ap = alloca %"struct.std::__va_list", align 4
|
|
call void @llvm.va_start(ptr nonnull %ap)
|
|
%cmp7 = icmp sgt i32 %n, 0
|
|
br i1 %cmp7, label %for.body.lr.ph, label %for.cond.cleanup
|
|
|
|
for.body.lr.ph: ; preds = %entry
|
|
%argp.cur.pre = load ptr, ptr %ap, align 4
|
|
br label %for.body
|
|
|
|
for.cond.cleanup: ; preds = %for.body, %entry
|
|
%s.0.lcssa = phi i32 [ 0, %entry ], [ %add, %for.body ]
|
|
call void @llvm.va_end(ptr nonnull %ap)
|
|
ret i32 %s.0.lcssa
|
|
|
|
for.body: ; preds = %for.body.lr.ph, %for.body
|
|
%argp.cur = phi ptr [ %argp.cur.pre, %for.body.lr.ph ], [ %argp.next, %for.body ]
|
|
%i.09 = phi i32 [ 0, %for.body.lr.ph ], [ %inc, %for.body ]
|
|
%s.08 = phi i32 [ 0, %for.body.lr.ph ], [ %add, %for.body ]
|
|
%argp.next = getelementptr inbounds i8, ptr %argp.cur, i32 4
|
|
store ptr %argp.next, ptr %ap, align 4
|
|
%0 = load i32, ptr %argp.cur, align 4
|
|
%add = add nsw i32 %0, %s.08
|
|
%inc = add nuw nsw i32 %i.09, 1
|
|
%exitcond.not = icmp eq i32 %inc, %n
|
|
br i1 %exitcond.not, label %for.cond.cleanup, label %for.body
|
|
}
|
|
|
|
declare void @llvm.va_start(ptr) #1
|
|
declare void @llvm.va_end(ptr) #1
|
|
|
|
attributes #0 = { nounwind optsize "sign-return-address"="non-leaf" }
|
|
attributes #1 = { nounwind "sign-return-address"="non-leaf" }
|
|
|
|
!llvm.module.flags = !{!0, !1, !2}
|
|
|
|
!0 = !{i32 8, !"branch-target-enforcement", i32 0}
|
|
!1 = !{i32 8, !"sign-return-address", i32 1}
|
|
!2 = !{i32 8, !"sign-return-address-all", i32 0}
|