[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / lds-dma-hazards.mir
bloba3dc15752fa1a707af804b25f61f56fa086c5a9f
1 # RUN: llc -march=amdgcn -mcpu=gfx940 -verify-machineinstrs -run-pass post-RA-hazard-rec %s -o - | FileCheck --check-prefix=GCN %s
3 # GCN-LABEL: name: buffer_load_dword_lds
4 # GCN:      $m0 = S_MOV_B32 0
5 # GCN-NEXT: S_NOP 0
6 # GCN-NEXT: BUFFER_LOAD_DWORD_LDS_ADDR64
7 ---
8 name: buffer_load_dword_lds
9 body:             |
10   bb.0:
11     $m0 = S_MOV_B32 0
12     BUFFER_LOAD_DWORD_LDS_ADDR64 $vgpr0_vgpr1, $sgpr0_sgpr1_sgpr2_sgpr3, 0, 4, 0, 0, implicit $exec, implicit $m0
13 ...
15 # GCN-LABEL: name: buffer_store_lds_dword
16 # GCN:      $m0 = S_MOV_B32 0
17 # GCN-NEXT: S_NOP 0
18 # GCN-NEXT: BUFFER_STORE_LDS_DWORD
19 ---
20 name: buffer_store_lds_dword
21 body:             |
22   bb.0:
23     $m0 = S_MOV_B32 0
24     BUFFER_STORE_LDS_DWORD $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, implicit $exec, implicit $m0
25 ...
27 # GCN-LABEL: name: global_load_lds_dword
28 # GCN:      $m0 = S_MOV_B32 0
29 # GCN-NEXT: S_NOP 0
30 # GCN-NEXT: GLOBAL_LOAD_LDS_DWORD
31 ---
32 name: global_load_lds_dword
33 body:             |
34   bb.0:
35     $m0 = S_MOV_B32 0
36     GLOBAL_LOAD_LDS_DWORD $vgpr2_vgpr3, 0, 0, implicit $exec, implicit $m0
37 ...
39 # GCN-LABEL: name: scratch_load_lds_dword
40 # GCN:      $m0 = S_MOV_B32 0
41 # GCN-NEXT: S_NOP 0
42 # GCN-NEXT: SCRATCH_LOAD_LDS_DWORD
43 ---
44 name: scratch_load_lds_dword
45 body:             |
46   bb.0:
47     $m0 = S_MOV_B32 0
48     SCRATCH_LOAD_LDS_DWORD $vgpr2, 0, 0, implicit $exec, implicit $m0
49 ...