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

100 lines
2.3 KiB
YAML

# RUN: llc -run-pass=aarch64-ldst-opt -o - -mtriple=aarch64-- %s | FileCheck %s
# Check that we merge the MIFlags from both the instructions in the final
# instruction.
---
name: case11
# CHECK-LABEL: name: case11
body: |
bb.0:
frame-setup STRWui $w1, $x0, 1 :: (store (s32))
$w1 = frame-destroy LDRWui $x0, 1 :: (load (s32))
; CHECK: frame-setup STRWui
; CHECK-NOT: frame-setup
; CHECK-NEXT: frame-destroy ORRWrs
; No merging happening here, make sure we keep the flags of the previous
; instruction.
RET_ReallyLR
...
---
name: case12
# CHECK-LABEL: name: case12
body: |
bb.0:
frame-setup STRWui $w1, $x0, 1 :: (store (s32))
$w2 = frame-destroy LDRHHui $x0, 2 :: (load (s16))
; CHECK: frame-setup STRWui
; CHECK-NOT: frame-setup
; CHECK-NEXT: frame-destroy ANDWri
; No merging happening here, make sure we keep the flags of the previous
; instruction.
RET_ReallyLR
...
---
name: case13
# CHECK-LABEL: name: case13
body: |
bb.0:
frame-setup STRWui $w1, $x0, 1 :: (store (s32))
$w2 = frame-destroy LDRHHui $x0, 3 :: (load (s16))
; CHECK: frame-setup STRWui
; CHECK-NOT: frame-setup
; CHECK-NEXT: frame-destroy UBFMWri
; No merging happening here, make sure we keep the flags of the previous
; instruction.
RET_ReallyLR
...
---
name: case2
# CHECK-LABEL: name: case2
body: |
bb.0:
frame-setup STRHHui $wzr, $x0, 0 :: (store (s32))
frame-destroy STRHHui $wzr, $x0, 1 :: (store (s32))
; CHECK: frame-setup frame-destroy STRWui
RET_ReallyLR
...
---
name: case3
# CHECK-LABEL: name: case3
body: |
bb.0:
$x0 = frame-setup LDRXui $x2, 0 :: (load (s64))
$x1 = frame-destroy LDRXui $x2, 1 :: (load (s64))
; CHECK: frame-setup frame-destroy LDPXi
RET_ReallyLR
...
---
name: case4
# CHECK-LABEL: name: case4
body: |
bb.0:
$x26, $x25 = frame-setup LDPXi $sp, 0 :: (load (s128))
$sp = frame-destroy ADDXri $sp, 64, 0
; CHECK: = frame-setup frame-destroy LDPXpost
RET_ReallyLR
...
---
name: case41
# CHECK-LABEL: name: case41
body: |
bb.0:
$x26 = frame-setup LDRXui $sp, 0 :: (load (s64))
$sp = frame-destroy ADDXri $sp, 64, 0
; CHECK: = frame-setup frame-destroy LDRXpost
RET_ReallyLR
...