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
51 lines
1.9 KiB
YAML
51 lines
1.9 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -run-pass regallocfast %s -o - | FileCheck %s
|
|
# RUN: llc -passes=regallocfast %s -o - | FileCheck %s
|
|
|
|
# This test examines register allocation and spilling with Fast Register
|
|
# Allocator. The test uses inline assembler that requests an input variable to
|
|
# be loaded in a high register but at the same time has r12 marked as clobbered.
|
|
# The allocator initially satisfies the load request by selecting r12 but then
|
|
# needs to spill this register when it reaches the INLINEASM instruction and
|
|
# notices its clobber definition.
|
|
#
|
|
# The test checks that the compiler is able to spill a register from the hGPR
|
|
# class in Thumb2 by inserting the t2STRi12/t2LDRi12 instructions.
|
|
|
|
--- |
|
|
; ModuleID = 'test.ll'
|
|
source_filename = "test.c"
|
|
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
|
|
target triple = "thumbv7m-none-unknown-eabi"
|
|
|
|
define dso_local void @constraint_h() {
|
|
entry:
|
|
%i = alloca i32, align 4
|
|
%0 = load i32, ptr %i, align 4
|
|
call void asm sideeffect "@ $0", "h,~{r12}"(i32 %0)
|
|
ret void
|
|
}
|
|
|
|
...
|
|
---
|
|
name: constraint_h
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: hgpr }
|
|
- { id: 1, class: tgpr }
|
|
stack:
|
|
- { id: 0, name: i, size: 4, alignment: 4, stack-id: default, local-offset: -4 }
|
|
body: |
|
|
bb.0.entry:
|
|
; CHECK-LABEL: name: constraint_h
|
|
; CHECK: renamable $r0 = tLDRspi %stack.0.i, 0, 14 /* CC::al */, $noreg :: (dereferenceable load (s32) from %ir.i)
|
|
; CHECK: renamable $r8 = COPY killed renamable $r0
|
|
; CHECK: INLINEASM &"@ $0", sideeffect attdialect, reguse:GPRnopc, killed renamable $r8, clobber, implicit-def dead early-clobber $r12
|
|
; CHECK: tBX_RET 14 /* CC::al */, $noreg
|
|
%1:tgpr = tLDRspi %stack.0.i, 0, 14, $noreg :: (dereferenceable load (s32) from %ir.i)
|
|
%0:hgpr = COPY %1
|
|
INLINEASM &"@ $0", 1, 589833, %0, 12, implicit-def early-clobber $r12
|
|
tBX_RET 14, $noreg
|
|
|
|
...
|