1 # RUN: llc -amdgpu-global-isel-new-legality -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -O0 -run-pass=legalizer -global-isel-abort=0 -o - %s | FileCheck %s
3 # CHECK: %1:_(<8 x s32>) = G_LOAD %0(p1) :: (load monotonic (<8 x s32>), addrspace 1)
4 # CHECK: G_STORE %1(<8 x s32>), %0(p1) :: (store monotonic (<8 x s32>), addrspace 1)
5 # CHECK: %1:_(s256) = G_LOAD %0(p1) :: (load monotonic (s256), addrspace 1)
6 # CHECK: G_STORE %1(s256), %0(p1) :: (store monotonic (s256), addrspace 1)
9 name: test_atomic_load_global_v8s32
13 %0:_(p1) = COPY $vgpr0_vgpr1
14 %1:_(<8 x s32>) = G_LOAD %0 :: (load monotonic (<8 x s32>), addrspace 1, align 32)
15 $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY %1
19 name: test_atomic_store_global_v8s32
22 liveins: $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9
23 %0:_(p1) = COPY $vgpr0_vgpr1
24 %1:_(<8 x s32>) = COPY $vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9
25 G_STORE %1, %0 :: (store monotonic (<8 x s32>), addrspace 1, align 32)
29 name: test_atomic_load_global_s256
33 %0:_(p1) = COPY $vgpr0_vgpr1
34 %1:_(s256) = G_LOAD %0 :: (load monotonic (s256), addrspace 1, align 32)
35 $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY %1
39 name: test_atomic_store_global_s256
42 liveins: $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9
43 %0:_(p1) = COPY $vgpr0_vgpr1
44 %1:_(s256) = COPY $vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9
45 G_STORE %1, %0 :: (store monotonic (s256), addrspace 1, align 32)