247a5615183bc48dadfb443656f26885c496d36a
[oota-llvm.git] / test / CodeGen / R600 / store-v3i64.ll
1 ; XFAIL: *
2 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI
3
4 ; SI-LABEL: {{^}}global_store_v3i64:
5 ; SI: buffer_store_dwordx4
6 ; SI: buffer_store_dwordx4
7 define void @global_store_v3i64(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
8   store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 32
9   ret void
10 }
11
12 ; SI-LABEL: {{^}}global_store_v3i64_unaligned:
13 define void @global_store_v3i64_unaligned(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
14   store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 1
15   ret void
16 }
17
18 ; SI-LABEL: {{^}}local_store_v3i64:
19 define void @local_store_v3i64(<3 x i64> addrspace(3)* %out, <3 x i64> %x) {
20   store <3 x i64> %x, <3 x i64> addrspace(3)* %out, align 32
21   ret void
22 }
23
24 ; SI-LABEL: {{^}}local_store_v3i64_unaligned:
25 define void @local_store_v3i64_unaligned(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
26   store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 1
27   ret void
28 }