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
3.4 KiB
YAML
82 lines
3.4 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
|
|
# RUN: llc --run-pass=aarch64-ldst-opt %s -o - | FileCheck %s
|
|
--- |
|
|
target triple = "aarch64-unknown-linux"
|
|
|
|
define i32 @f(i32 %x) {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @g(i32)
|
|
|
|
...
|
|
---
|
|
name: f
|
|
alignment: 4
|
|
tracksRegLiveness: true
|
|
liveins:
|
|
- { reg: '$w0', virtual-reg: '' }
|
|
frameInfo:
|
|
stackSize: 32
|
|
maxAlignment: 8
|
|
adjustsStack: true
|
|
hasCalls: true
|
|
isCalleeSavedInfoValid: true
|
|
fixedStack: []
|
|
stack:
|
|
- { id: 0, name: '', type: spill-slot, offset: -24, size: 8, alignment: 8,
|
|
stack-id: default, callee-saved-register: '$lr', callee-saved-restored: true,
|
|
debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
|
|
- { id: 1, name: '', type: spill-slot, offset: -32, size: 8, alignment: 8,
|
|
stack-id: default, callee-saved-register: '$fp', callee-saved-restored: true,
|
|
debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
|
|
entry_values: []
|
|
callSites: []
|
|
debugValueSubstitutions: []
|
|
constants: []
|
|
machineFunctionInfo:
|
|
hasRedZone: false
|
|
body: |
|
|
bb.0.entry:
|
|
liveins: $w0, $lr, $x1
|
|
; Test a load instruction is merged backwards into an SP update
|
|
; CHECK-LABEL: name: f
|
|
; CHECK: liveins: $w0, $lr, $x1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: early-clobber $sp, $x0 = frame-setup LDRXpre $sp, -32 :: (load (s64))
|
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION def_cfa_offset 32
|
|
; CHECK-NEXT: frame-setup STRXui killed $fp, $sp, 0 :: (store (s64) into %stack.1)
|
|
; CHECK-NEXT: frame-setup STRXui killed $x1, $sp, 1
|
|
; CHECK-NEXT: frame-setup STRXui killed $lr, $sp, 2 :: (store (s64) into %stack.0)
|
|
; CHECK-NEXT: $fp = frame-setup ADDXri $sp, 0, 0
|
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION def_cfa $w29, 32
|
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $w30, -8
|
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $w29, -16
|
|
; CHECK-NEXT: renamable $w0 = nsw SUBWri killed renamable $w0, 1, 0
|
|
; CHECK-NEXT: BL @g, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $w0, implicit-def $sp, implicit-def $w0
|
|
; CHECK-NEXT: $w0 = nsw ADDWri killed renamable $w0, 1, 0
|
|
; CHECK-NEXT: $fp = frame-destroy LDRXui $sp, 0 :: (load (s64) from %stack.1)
|
|
; CHECK-NEXT: $lr = frame-destroy LDRXui $sp, 2 :: (load (s64) from %stack.0)
|
|
; CHECK-NEXT: $sp = frame-destroy ADDXri $sp, 32, 0
|
|
; CHECK-NEXT: RET undef $lr, implicit $w0
|
|
$sp = frame-setup SUBXri $sp, 32, 0
|
|
frame-setup CFI_INSTRUCTION def_cfa_offset 32
|
|
$x0 = frame-setup LDRXui $sp, 0 :: (load (s64))
|
|
frame-setup STRXui killed $fp, $sp, 0 :: (store (s64) into %stack.1)
|
|
frame-setup STRXui killed $x1, $sp, 1
|
|
frame-setup STRXui killed $lr, $sp, 2 :: (store (s64) into %stack.0)
|
|
$fp = frame-setup ADDXri $sp, 0, 0
|
|
frame-setup CFI_INSTRUCTION def_cfa $w29, 32
|
|
frame-setup CFI_INSTRUCTION offset $w30, -8
|
|
frame-setup CFI_INSTRUCTION offset $w29, -16
|
|
renamable $w0 = nsw SUBWri killed renamable $w0, 1, 0
|
|
BL @g, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $w0, implicit-def $sp, implicit-def $w0
|
|
$w0 = nsw ADDWri killed renamable $w0, 1, 0
|
|
$fp = frame-destroy LDRXui $sp, 0 :: (load (s64) from %stack.1)
|
|
$lr = frame-destroy LDRXui $sp, 2 :: (load (s64) from %stack.0)
|
|
$sp = frame-destroy ADDXri $sp, 32, 0
|
|
RET undef $lr, implicit $w0
|
|
|
|
...
|