diff options
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/load-global-i16.ll')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/load-global-i16.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/load-global-i16.ll b/llvm/test/CodeGen/AMDGPU/load-global-i16.ll index 6d243340395..c1dcc1d3126 100644 --- a/llvm/test/CodeGen/AMDGPU/load-global-i16.ll +++ b/llvm/test/CodeGen/AMDGPU/load-global-i16.ll @@ -83,6 +83,18 @@ entry: ret void } +; GCN-LABEL: {{^}}global_load_v16i16_align2: +; GCN-HSA: flat_load_dwordx4 +; GCN-HSA: flat_load_dwordx4 +; GCN-HSA: flat_store_dwordx4 +; GCN-HSA: flat_store_dwordx4 +define amdgpu_kernel void @global_load_v16i16_align2(<16 x i16> addrspace(1)* %in, <16 x i16> addrspace(1)* %out) #0 { +entry: + %ld = load <16 x i16>, <16 x i16> addrspace(1)* %in, align 2 + store <16 x i16> %ld, <16 x i16> addrspace(1)* %out, align 32 + ret void +} + ; FUNC-LABEL: {{^}}global_zextload_i16_to_i32: ; GCN-NOHSA: buffer_load_ushort ; GCN-NOHSA: buffer_store_dword |

