Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/AArch64/ldst-prepost-uses.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

74 lines
2.7 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
; RUN: llc < %s -O3 -mtriple=aarch64 | FileCheck %s
; From #164775, this generates a pre-index load feeding a post-index store, that
; was checking the wrong uses for post-inc. It seems quite delicate for it to
; generate this combination at the wrong point to hit the same issue.
@g_260 = dso_local global i16 0
@g_480 = dso_local global i16 0
define i32 @func_1(ptr %l_3253) {
; CHECK-LABEL: func_1:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: sub sp, sp, #128
; CHECK-NEXT: .cfi_def_cfa_offset 128
; CHECK-NEXT: movi v0.2d, #0000000000000000
; CHECK-NEXT: mov w9, #2 // =0x2
; CHECK-NEXT: mov w10, #96 // =0x60
; CHECK-NEXT: strb wzr, [x9]
; CHECK-NEXT: mov w9, #111 // =0x6f
; CHECK-NEXT: mov x8, xzr
; CHECK-NEXT: str wzr, [x9]
; CHECK-NEXT: mov w9, #80 // =0x50
; CHECK-NEXT: adrp x1, .L_MergedGlobals
; CHECK-NEXT: add x1, x1, :lo12:.L_MergedGlobals
; CHECK-NEXT: strh wzr, [x8]
; CHECK-NEXT: str q0, [x9]
; CHECK-NEXT: mov w9, #48 // =0x30
; CHECK-NEXT: str q0, [x9]
; CHECK-NEXT: mov w9, #32 // =0x20
; CHECK-NEXT: str q0, [x10]
; CHECK-NEXT: mov w10, #64 // =0x40
; CHECK-NEXT: str q0, [x9]
; CHECK-NEXT: mov w9, #16 // =0x10
; CHECK-NEXT: str q0, [x10]
; CHECK-NEXT: str q0, [x9]
; CHECK-NEXT: str q0, [x8]
; CHECK-NEXT: adrp x8, .L_MergedGlobals
; CHECK-NEXT: strb wzr, [x0, #8]
; CHECK-NEXT: strb wzr, [x0, #12]
; CHECK-NEXT: strb wzr, [x0, #16]
; CHECK-NEXT: strb wzr, [x0, #20]
; CHECK-NEXT: mov w0, wzr
; CHECK-NEXT: ldrh wzr, [x8, :lo12:.L_MergedGlobals]
; CHECK-NEXT: ldrh w8, [x1, #4]!
; CHECK-NEXT: sub w8, w8, #1
; CHECK-NEXT: strh w8, [x1]
; CHECK-NEXT: add sp, sp, #128
; CHECK-NEXT: b use
entry:
%l_32531.sroa.3 = alloca [3 x i8], align 4
%l_32531.sroa.4 = alloca [115 x i8], align 4
call void @llvm.lifetime.start.p0(ptr %l_32531.sroa.3)
call void @llvm.lifetime.start.p0(ptr %l_32531.sroa.4)
call void @llvm.memset.p0.i64(ptr null, i8 0, i64 3, i1 false)
call void @llvm.memset.p0.i64(ptr null, i8 0, i64 115, i1 false)
%0 = getelementptr inbounds i8, ptr %l_3253, i64 8
store i8 0, ptr %0, align 4
%1 = getelementptr inbounds i8, ptr %l_3253, i64 12
store i8 0, ptr %1, align 4
%2 = getelementptr inbounds i8, ptr %l_3253, i64 16
store i8 0, ptr %2, align 4
%3 = getelementptr inbounds i8, ptr %l_3253, i64 20
store i8 0, ptr %3, align 4
%4 = load volatile i16, ptr @g_260, align 4
%5 = load i16, ptr @g_480, align 4
%dec.i.i = add i16 %5, -1
store i16 %dec.i.i, ptr @g_480, align 4
%call1 = tail call i32 @use(i32 0, ptr @g_480)
ret i32 %call1
}
declare i32 @use(i32, ptr)