1 # RUN: llc -march=amdgcn -mcpu=gfx90a -verify-machineinstrs -run-pass si-load-store-opt -o - %s | FileCheck -enable-var-scope -check-prefix=GCN %s
3 # GCN-LABEL: name: ds_read_b32_v_v
4 # GCN: vreg_64_align2 = DS_READ2_B32
9 %0:vgpr_32 = IMPLICIT_DEF
10 %1:vgpr_32 = DS_READ_B32_gfx9 %0, 0, 0, implicit $exec :: (load (s32) from `ptr addrspace(3) undef`)
11 %2:vgpr_32 = DS_READ_B32_gfx9 %0, 8, 0, implicit $exec :: (load (s32) from `ptr addrspace(3) undef`)
14 # GCN-LABEL: name: ds_read_b32_a_a
15 # GCN: areg_64_align2 = DS_READ2_B32
20 %0:vgpr_32 = IMPLICIT_DEF
21 %1:agpr_32 = DS_READ_B32_gfx9 %0, 0, 0, implicit $exec :: (load (s32) from `ptr addrspace(3) undef`)
22 %2:agpr_32 = DS_READ_B32_gfx9 %0, 8, 0, implicit $exec :: (load (s32) from `ptr addrspace(3) undef`)
25 # GCN-LABEL: name: ds_read_b32_v_a
26 # GCN: vgpr_32 = DS_READ_B32
27 # GCN: agpr_32 = DS_READ_B32
32 %0:vgpr_32 = IMPLICIT_DEF
33 %1:vgpr_32 = DS_READ_B32_gfx9 %0, 0, 0, implicit $exec :: (load (s32) from `ptr addrspace(3) undef`)
34 %2:agpr_32 = DS_READ_B32_gfx9 %0, 8, 0, implicit $exec :: (load (s32) from `ptr addrspace(3) undef`)
37 # GCN-LABEL: name: ds_read_b32_a_v
38 # GCN: agpr_32 = DS_READ_B32
39 # GCN: vgpr_32 = DS_READ_B32
44 %0:vgpr_32 = IMPLICIT_DEF
45 %1:agpr_32 = DS_READ_B32_gfx9 %0, 8, 0, implicit $exec :: (load (s32) from `ptr addrspace(3) undef`)
46 %2:vgpr_32 = DS_READ_B32_gfx9 %0, 0, 0, implicit $exec :: (load (s32) from `ptr addrspace(3) undef`)
49 # GCN-LABEL: name: ds_write_b32_v_v
50 # GCN: DS_WRITE2_B32_gfx9 %0, undef %1:vgpr_32, undef %2:vgpr_32
51 name: ds_write_b32_v_v
55 %0:vgpr_32 = IMPLICIT_DEF
56 DS_WRITE_B32_gfx9 %0, undef %1:vgpr_32, 0, 0, implicit $exec :: (store (s32) into `ptr addrspace(3) undef`)
57 DS_WRITE_B32_gfx9 %0, undef %2:vgpr_32, 8, 0, implicit $exec :: (store (s32) into `ptr addrspace(3) undef`)
60 # GCN-LABEL: name: ds_write_b32_a_a
61 # GCN: DS_WRITE_B32_gfx9 %0, undef %1:agpr_32
62 # GCN: DS_WRITE_B32_gfx9 %0, undef %2:agpr_32
63 name: ds_write_b32_a_a
67 %0:vgpr_32 = IMPLICIT_DEF
68 DS_WRITE_B32_gfx9 %0, undef %1:agpr_32, 0, 0, implicit $exec :: (store (s32) into `ptr addrspace(3) undef`)
69 DS_WRITE_B32_gfx9 %0, undef %2:agpr_32, 8, 0, implicit $exec :: (store (s32) into `ptr addrspace(3) undef`)
72 # GCN-LABEL: name: ds_write_b32_v_a
73 # GCN: DS_WRITE_B32_gfx9 %0, undef %1:vgpr_32
74 # GCN: DS_WRITE_B32_gfx9 %0, undef %2:agpr_32
75 name: ds_write_b32_v_a
79 %0:vgpr_32 = IMPLICIT_DEF
80 DS_WRITE_B32_gfx9 %0, undef %1:vgpr_32, 0, 0, implicit $exec :: (store (s32) into `ptr addrspace(3) undef`)
81 DS_WRITE_B32_gfx9 %0, undef %2:agpr_32, 8, 0, implicit $exec :: (store (s32) into `ptr addrspace(3) undef`)
84 # GCN-LABEL: name: ds_write_b32_a_v
85 # GCN: DS_WRITE_B32_gfx9 %0, undef %1:agpr_32
86 # GCN: DS_WRITE_B32_gfx9 %0, undef %2:vgpr_32
87 name: ds_write_b32_a_v
91 %0:vgpr_32 = IMPLICIT_DEF
92 DS_WRITE_B32_gfx9 %0, undef %1:agpr_32, 0, 0, implicit $exec :: (store (s32) into `ptr addrspace(3) undef`)
93 DS_WRITE_B32_gfx9 %0, undef %2:vgpr_32, 8, 0, implicit $exec :: (store (s32) into `ptr addrspace(3) undef`)