Files
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

68 lines
1.8 KiB
LLVM

; pr23772 - [ARM] r226200 can emit illegal thumb2 instruction: "sub sp, r12, #80"
; RUN: llc -mcpu=cortex-m3 -O3 -filetype=asm -o - %s | FileCheck %s
; CHECK-NOT: sub{{.*}} sp, r{{.*}}, #
; CHECK: .fnend
; TODO: Missed optimization. The three instructions generated to subtract SP can be converged to a single one
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32"
target triple = "thumbv7m-unknown-unknown"
%B = type {ptr}
%R = type {i32}
%U = type {ptr, i8, i8}
%E = type {ptr, ptr}
%X = type {i32, i8, i8}
declare external ptr @memalloc(i32, i32, i32)
declare external void @memfree(ptr, i32, i32)
define void @foo(ptr %pb$, ptr %pr$) nounwind {
L.0:
%pb = alloca ptr
%pr = alloca ptr
store ptr %pb$, ptr %pb
store ptr %pr$, ptr %pr
%pe = alloca ptr
%0 = load ptr, ptr %pb
store ptr %0, ptr %pe
%1 = load ptr, ptr %pr
%2 = load i32, ptr %1
switch i32 %2, label %L.1 [
i32 1, label %L.3
]
L.3:
%px = alloca ptr
%3 = load ptr, ptr %pr
store ptr %3, ptr %px
%4 = load ptr, ptr %px
%5 = load i32, ptr %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %L.5, label %L.4
L.5:
%pu = alloca ptr
%7 = call ptr @memalloc(i32 8, i32 4, i32 0)
store ptr %7, ptr %pu
%8 = load ptr, ptr %px
%9 = getelementptr %X, ptr %8, i32 0, i32 1
%10 = load i8, ptr %9
%11 = load ptr, ptr %pu
%12 = getelementptr %U, ptr %11, i32 0, i32 1
store i8 %10, ptr %12
%13 = load ptr, ptr %pe
%14 = getelementptr %E, ptr %13, i32 0, i32 1
%15 = load ptr, ptr %14
%16 = load ptr, ptr %pu
store ptr %15, ptr %16
%17 = load ptr, ptr %pu
%18 = load ptr, ptr %pe
%19 = getelementptr %E, ptr %18, i32 0, i32 1
store ptr %17, ptr %19
br label %L.4
L.4:
%20 = load ptr, ptr %px
call void @memfree(ptr %20, i32 8, i32 0)
br label %L.2
L.1:
br label %L.2
L.2:
br label %return
return:
ret void
}