xref: /llvm-project/llvm/test/CodeGen/MIR/AArch64/target-memoperands.mir (revision fae05692a36f9ebbd201d93c2a6b0f927564d7e6)
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s
3
4--- |
5
6  define void @target_memoperands() {
7    ret void
8  }
9
10...
11---
12name:            target_memoperands
13body: |
14  bb.0:
15
16    ; CHECK-LABEL: name: target_memoperands
17    ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
18    ; CHECK: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: ("aarch64-suppress-pair" load (s64))
19    ; CHECK: [[LOAD1:%[0-9]+]]:_(s32) = G_LOAD [[COPY]](p0) :: ("aarch64-strided-access" load (s32))
20    ; CHECK: G_STORE [[LOAD]](s64), [[COPY]](p0) :: ("aarch64-suppress-pair" store (s64))
21    ; CHECK: G_STORE [[LOAD1]](s32), [[COPY]](p0) :: ("aarch64-strided-access" store (s32))
22    ; CHECK: RET_ReallyLR
23    %0:_(p0) = COPY $x0
24    %1:_(s64) = G_LOAD %0(p0) :: ("aarch64-suppress-pair" load (s64))
25    %2:_(s32) = G_LOAD %0(p0) :: ("aarch64-strided-access" load (s32))
26    G_STORE %1(s64), %0(p0) :: ("aarch64-suppress-pair" store (s64))
27    G_STORE %2(s32), %0(p0) :: ("aarch64-strided-access" store (s32))
28    RET_ReallyLR
29...
30