summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/load-local-i64.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/load-local-i64.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/load-local-i64.ll11
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/load-local-i64.ll b/llvm/test/CodeGen/AMDGPU/load-local-i64.ll
index 359fbb42f40..697f474f10c 100644
--- a/llvm/test/CodeGen/AMDGPU/load-local-i64.ll
+++ b/llvm/test/CodeGen/AMDGPU/load-local-i64.ll
@@ -4,7 +4,7 @@
; RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX9,FUNC %s
; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck -check-prefixes=EG,FUNC %s
-; Testing for ds_read_b128
+; Testing for ds_read/write_b128
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs -amdgpu-ds128 < %s | FileCheck -check-prefixes=CIVI,FUNC %s
; RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -amdgpu-ds128 < %s | FileCheck -check-prefixes=CIVI,FUNC %s
@@ -40,13 +40,16 @@ entry:
ret void
}
-; Tests if ds_read_b128 gets generated for the 16 byte aligned load.
+; Tests if ds_read/write_b128 gets generated for the 16 byte aligned load.
; FUNC-LABEL: {{^}}local_load_v2i64_to_128:
+
; CIVI: ds_read_b128
+; CIVI: ds_write_b128
+
define amdgpu_kernel void @local_load_v2i64_to_128(<2 x i64> addrspace(3)* %out, <2 x i64> addrspace(3)* %in) {
entry:
- %ld = load <2 x i64>, <2 x i64> addrspace(3)* %in
- store <2 x i64> %ld, <2 x i64> addrspace(3)* %out
+ %ld = load <2 x i64>, <2 x i64> addrspace(3)* %in, align 16
+ store <2 x i64> %ld, <2 x i64> addrspace(3)* %out, align 16
ret void
}
OpenPOWER on IntegriCloud