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
82 lines
2.8 KiB
LLVM
82 lines
2.8 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
|
|
; RUN: llc --filetype=obj %s -o - | llvm-readelf --unwind - | FileCheck %s --check-prefix=UNWIND
|
|
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"
|
|
|
|
; int g(int, int *);
|
|
;
|
|
; int f() {
|
|
; __attribute__((aligned(32))) int a[4];
|
|
; g(4, a);
|
|
; int s = 0;
|
|
; for (int i = 0; i < 4; ++i)
|
|
; s += a[i];
|
|
; return s;
|
|
; }
|
|
|
|
define hidden i32 @_Z1fv() local_unnamed_addr "sign-return-address"="non-leaf" {
|
|
; CHECK-LABEL: _Z1fv:
|
|
; CHECK: .cfi_sections .debug_frame
|
|
; CHECK-NEXT: .cfi_startproc
|
|
; CHECK-NEXT: @ %bb.0: @ %entry
|
|
; CHECK-NEXT: pac r12, lr, sp
|
|
; CHECK-NEXT: .save {r4, r6, r7, ra_auth_code, lr}
|
|
; CHECK-NEXT: push.w {r4, r6, r7, r12, lr}
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 20
|
|
; CHECK-NEXT: .cfi_offset lr, -4
|
|
; CHECK-NEXT: .cfi_offset ra_auth_code, -8
|
|
; CHECK-NEXT: .cfi_offset r7, -12
|
|
; CHECK-NEXT: .cfi_offset r6, -16
|
|
; CHECK-NEXT: .cfi_offset r4, -20
|
|
; CHECK-NEXT: .setfp r7, sp, #8
|
|
; CHECK-NEXT: add r7, sp, #8
|
|
; CHECK-NEXT: .cfi_def_cfa r7, 12
|
|
; CHECK-NEXT: .pad #44
|
|
; CHECK-NEXT: sub sp, #44
|
|
; CHECK-NEXT: mov r4, sp
|
|
; CHECK-NEXT: bfc r4, #0, #5
|
|
; CHECK-NEXT: mov sp, r4
|
|
; CHECK-NEXT: mov r1, sp
|
|
; CHECK-NEXT: movs r0, #4
|
|
; CHECK-NEXT: bl _Z1giPi
|
|
; CHECK-NEXT: ldm.w sp, {r0, r1, r2, r3}
|
|
; CHECK-NEXT: sub.w r4, r7, #8
|
|
; CHECK-NEXT: add r0, r1
|
|
; CHECK-NEXT: add r0, r2
|
|
; CHECK-NEXT: add r0, r3
|
|
; CHECK-NEXT: mov sp, r4
|
|
; CHECK-NEXT: pop.w {r4, r6, r7, r12, lr}
|
|
; CHECK-NEXT: aut r12, lr, sp
|
|
; CHECK-NEXT: bx lr
|
|
entry:
|
|
%a = alloca [4 x i32], align 32
|
|
%call = call i32 @_Z1giPi(i32 4, ptr nonnull %a)
|
|
%0 = load i32, ptr %a, align 32
|
|
%arrayidx.1 = getelementptr inbounds [4 x i32], ptr %a, i32 0, i32 1
|
|
%1 = load i32, ptr %arrayidx.1, align 4
|
|
%add.1 = add nsw i32 %1, %0
|
|
%arrayidx.2 = getelementptr inbounds [4 x i32], ptr %a, i32 0, i32 2
|
|
%2 = load i32, ptr %arrayidx.2, align 8
|
|
%add.2 = add nsw i32 %2, %add.1
|
|
%arrayidx.3 = getelementptr inbounds [4 x i32], ptr %a, i32 0, i32 3
|
|
%3 = load i32, ptr %arrayidx.3, align 4
|
|
%add.3 = add nsw i32 %3, %add.2
|
|
ret i32 %add.3
|
|
}
|
|
|
|
declare dso_local i32 @_Z1giPi(i32, ptr) local_unnamed_addr
|
|
|
|
!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}
|
|
|
|
; UNWIND-LABEL: FunctionAddress: 0x0
|
|
; UNWIND: 0x97 ; vsp = r7
|
|
; UNWIND-NEXT: 0x41 ; vsp = vsp - 8
|
|
; UNWIND-NEXT: 0x80 0x0D ; pop {r4, r6, r7}
|
|
; UNWIND-NEXT: 0xB4 ; pop ra_auth_code
|
|
; UNWIND-NEXT: 0x84 0x00 ; pop {lr}
|