• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
2
3# CHECK: %1:_(<8 x s32>) = G_LOAD %0(p1) :: (load monotonic 32, addrspace 1)
4# CHECK:  G_STORE %1(<8 x s32>), %0(p1) :: (store monotonic 32, addrspace 1)
5# CHECK: %1:_(s256) = G_LOAD %0(p1) :: (load monotonic 32, addrspace 1)
6# CHECK:  G_STORE %1(s256), %0(p1) :: (store monotonic 32, addrspace 1)
7
8---
9name: test_atomic_load_global_v8s32
10body: |
11  bb.0:
12    liveins: $vgpr0_vgpr1
13    %0:_(p1) = COPY $vgpr0_vgpr1
14    %1:_(<8 x s32>) = G_LOAD %0 :: (load monotonic  32, addrspace 1, align 32)
15    $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY %1
16...
17
18---
19name: test_atomic_store_global_v8s32
20body: |
21  bb.0:
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  32, addrspace 1, align 32)
26...
27
28---
29name: test_atomic_load_global_s256
30body: |
31  bb.0:
32    liveins: $vgpr0_vgpr1
33    %0:_(p1) = COPY $vgpr0_vgpr1
34    %1:_(s256) = G_LOAD %0 :: (load monotonic  32, addrspace 1, align 32)
35    $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY %1
36...
37
38---
39name: test_atomic_store_global_s256
40body: |
41  bb.0:
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  32, addrspace 1, align 32)
46...
47