Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / nsa-vmem-hazard.mir
bloba968d4a1acfcfec358bf5841a4fed9032041f429
1 # RUN: llc -mtriple=amdgcn -mcpu=gfx1010 -mattr=-xnack -verify-machineinstrs -run-pass post-RA-hazard-rec -o - %s | FileCheck -check-prefix=GCN %s
3 # GCN-LABEL: name: hazard_image_sample_d_buf_off6
4 # GCN:      IMAGE_SAMPLE
5 # GCN-NEXT: S_NOP 0
6 # GCN-NEXT: BUFFER_LOAD_DWORD_OFFSET
7 ---
8 name:            hazard_image_sample_d_buf_off6
9 body:            |
10   bb.0:
11     $vgpr0_vgpr1_vgpr2_vgpr3 = IMAGE_SAMPLE_D_V4_V9_nsa_gfx10 undef $vgpr3, undef $vgpr8, undef $vgpr7, undef $vgpr5, undef $vgpr4, undef $vgpr6, undef $vgpr0, undef $vgpr2, undef $vgpr2, undef $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, undef $sgpr8_sgpr9_sgpr10_sgpr11, 15, 2, 0, 0, 0, 0, 0, 0, 0, implicit $exec  :: (load (s128))
12     $vgpr1 = BUFFER_LOAD_DWORD_OFFSET undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 6, 0, 0, implicit $exec
13 ...
15 # GCN-LABEL: name: no_hazard_image_sample_d_buf_off1
16 # GCN:      IMAGE_SAMPLE
17 # GCN-NEXT: BUFFER_LOAD_DWORD_OFFSET
18 ---
19 name:            no_hazard_image_sample_d_buf_off1
20 body:            |
21   bb.0:
22     $vgpr0_vgpr1_vgpr2_vgpr3 = IMAGE_SAMPLE_D_V4_V9_nsa_gfx10 undef $vgpr3, undef $vgpr8, undef $vgpr7, undef $vgpr5, undef $vgpr4, undef $vgpr6, undef $vgpr0, undef $vgpr2, undef $vgpr2, undef $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, undef $sgpr8_sgpr9_sgpr10_sgpr11, 15, 2, 0, 0, 0, 0, 0, 0, 0, implicit $exec  :: (load (s128))
23     $vgpr1 = BUFFER_LOAD_DWORD_OFFSET undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 1, 0, 0, implicit $exec
24 ...
26 # GCN-LABEL: name: no_hazard_image_sample_d_buf_far
27 # GCN:      IMAGE_SAMPLE
28 # GCN-NEXT: V_NOP_e32
29 # GCN-NEXT: BUFFER_LOAD_DWORD_OFFSET
30 ---
31 name:            no_hazard_image_sample_d_buf_far
32 body:            |
33   bb.0:
34     $vgpr0_vgpr1_vgpr2_vgpr3 = IMAGE_SAMPLE_D_V4_V9_nsa_gfx10 undef $vgpr3, undef $vgpr8, undef $vgpr7, undef $vgpr5, undef $vgpr4, undef $vgpr6, undef $vgpr0, undef $vgpr2, undef $vgpr2, undef $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, undef $sgpr8_sgpr9_sgpr10_sgpr11, 15, 2, 0, 0, 0, 0, 0, 0, 0, implicit $exec  :: (load (s128))
35     V_NOP_e32 implicit $exec
36     $vgpr1 = BUFFER_LOAD_DWORD_OFFSET undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 6, 0, 0, implicit $exec
37 ...
39 # Non-NSA
40 # GCN-LABEL: name: no_hazard_image_sample_v4_v2_buf_off6
41 # GCN:      IMAGE_SAMPLE
42 # GCN-NEXT: BUFFER_LOAD_DWORD_OFFSET
43 ---
44 name:            no_hazard_image_sample_v4_v2_buf_off6
45 body:            |
46   bb.0:
47     $vgpr0_vgpr1_vgpr2_vgpr3 = IMAGE_SAMPLE_V4_V2_gfx10 undef $vgpr1_vgpr2, undef $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, undef $sgpr8_sgpr9_sgpr10_sgpr11, 15, 1, 0, 0, 0, 0, 0, 0, 0, implicit $exec  :: (load (s128))
48     $vgpr1 = BUFFER_LOAD_DWORD_OFFSET undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 6, 0, 0, implicit $exec
49 ...
51 # Less than 4 dwords
52 # GCN-LABEL: name: no_hazard_image_sample_v4_v3_buf_off6
53 # GCN:      IMAGE_SAMPLE
54 # GCN-NEXT: BUFFER_LOAD_DWORD_OFFSET
55 ---
56 name:            no_hazard_image_sample_v4_v3_buf_off6
57 body:            |
58   bb.0:
59     $vgpr0_vgpr1_vgpr2_vgpr3 = IMAGE_SAMPLE_V4_V3_nsa_gfx10 undef $vgpr1, undef $vgpr2, undef $vgpr0, undef $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, undef $sgpr8_sgpr9_sgpr10_sgpr11, 15, 2, 0, 0, 0, 0, 0, 0, 0, implicit $exec :: (load (s128))
60     $vgpr1 = BUFFER_LOAD_DWORD_OFFSET undef $sgpr0_sgpr1_sgpr2_sgpr3, undef $sgpr4, 6, 0, 0, implicit $exec
61 ...