Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/MSP430/spill-to-stack.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

41 lines
1.3 KiB
LLVM

; RUN: llc -mtriple=msp430 < %s
%VeryLarge = type { i8, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
; intentionally cause a spill
define void @inc(ptr byval(%VeryLarge) align 1 %s) {
entry:
%p0 = getelementptr inbounds %VeryLarge, ptr %s, i32 0, i32 0
%0 = load i8, ptr %p0
%p1 = getelementptr inbounds %VeryLarge, ptr %s, i32 0, i32 1
%1 = load i32, ptr %p1
%p2 = getelementptr inbounds %VeryLarge, ptr %s, i32 0, i32 2
%2 = load i32, ptr %p2
%p3 = getelementptr inbounds %VeryLarge, ptr %s, i32 0, i32 3
%3 = load i32, ptr %p3
%p4 = getelementptr inbounds %VeryLarge, ptr %s, i32 0, i32 4
%4 = load i32, ptr %p4
%p5 = getelementptr inbounds %VeryLarge, ptr %s, i32 0, i32 5
%5 = load i32, ptr %p5
%p6 = getelementptr inbounds %VeryLarge, ptr %s, i32 0, i32 6
%6 = load i32, ptr %p6
%p7 = getelementptr inbounds %VeryLarge, ptr %s, i32 0, i32 7
%7 = load i32, ptr %p7
%add = add i8 %0, 1
store i8 %add, ptr %p0
%add2 = add i32 %1, 2
store i32 %add2, ptr %p1
%add3 = add i32 %2, 3
store i32 %add3, ptr %p2
%add4 = add i32 %3, 4
store i32 %add4, ptr %p3
%add5 = add i32 %4, 5
store i32 %add5, ptr %p4
%add6 = add i32 %5, 6
store i32 %add6, ptr %p5
%add7 = add i32 %6, 7
store i32 %add7, ptr %p6
%add8 = add i32 %7, 8
store i32 %add8, ptr %p7
ret void
}