1 # RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s
2 # RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass mir-canonicalizer -o - %s
6 define void @addrspace_memoperands() {
12 name: addrspace_memoperands
16 ; CHECK-LABEL: name: addrspace_memoperands
17 ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
18 ; CHECK: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: (load 8, addrspace 1)
19 ; CHECK: [[LOAD1:%[0-9]+]]:_(s32) = G_LOAD [[COPY]](p0) :: (load 4, align 2, addrspace 3)
20 ; CHECK: G_STORE [[LOAD]](s64), [[COPY]](p0) :: (store 8, addrspace 1)
21 ; CHECK: G_STORE [[LOAD1]](s32), [[COPY]](p0) :: (store 4, align 2, addrspace 3)
22 ; CHECK: G_STORE [[LOAD1]](s32), [[COPY]](p0) :: (store 4)
25 %1:_(s64) = G_LOAD %0(p0) :: (load 8, addrspace 1)
26 %2:_(s32) = G_LOAD %0(p0) :: (load 4, align 2, addrspace 3)
27 G_STORE %1(s64), %0(p0) :: (store 8, addrspace 1)
28 G_STORE %2(s32), %0(p0) :: (store 4, align 2, addrspace 3)
29 ; addrspace 0 is accepted by the parser but not printed
30 G_STORE %2(s32), %0(p0) :: (store 4, addrspace 0)