• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -verify-machineinstrs -o - %s | FileCheck %s
2# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass mir-canonicalizer -verify-machineinstrs -o - %s
3# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass mir-canonicalizer -mir-vreg-namer-use-stable-hash -verify-machineinstrs -o - %s
4
5--- |
6
7  define void @addrspace_memoperands() {
8    ret void
9  }
10
11...
12---
13name:            addrspace_memoperands
14body: |
15  bb.0:
16
17    ; CHECK-LABEL: name: addrspace_memoperands
18    ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
19    ; CHECK: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: (load 8, addrspace 1)
20    ; CHECK: [[LOAD1:%[0-9]+]]:_(s32) = G_LOAD [[COPY]](p0) :: (load 4, align 2, addrspace 3)
21    ; CHECK: G_STORE [[LOAD]](s64), [[COPY]](p0) :: (store 8, addrspace 1)
22    ; CHECK: G_STORE [[LOAD1]](s32), [[COPY]](p0) :: (store 4, align 2, addrspace 3)
23    ; CHECK: G_STORE [[LOAD1]](s32), [[COPY]](p0) :: (store 4)
24    ; CHECK: RET_ReallyLR
25    %0:_(p0) = COPY $x0
26    %1:_(s64) = G_LOAD %0(p0) :: (load 8, addrspace 1)
27    %2:_(s32) = G_LOAD %0(p0) :: (load 4, align 2, addrspace 3)
28    G_STORE %1(s64), %0(p0) :: (store 8, addrspace 1)
29    G_STORE %2(s32), %0(p0) :: (store 4, align 2, addrspace 3)
30    ; addrspace 0 is accepted by the parser but not printed
31    G_STORE %2(s32), %0(p0) :: (store 4, addrspace 0)
32    RET_ReallyLR
33...
34