2014-02-07 20:29:40 +00:00
|
|
|
; XFAIL: *
|
2015-02-13 21:27:28 +00:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI %s
|
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs< %s | FileCheck -check-prefix=SI %s
|
2014-02-07 20:29:40 +00:00
|
|
|
|
2014-10-01 17:15:17 +00:00
|
|
|
; SI-LABEL: {{^}}global_store_v3i64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dwordx4
|
|
|
|
; SI: buffer_store_dwordx4
|
2014-02-07 20:29:40 +00:00
|
|
|
define void @global_store_v3i64(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
|
|
|
|
store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 32
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-10-01 17:15:17 +00:00
|
|
|
; SI-LABEL: {{^}}global_store_v3i64_unaligned:
|
2014-02-07 20:29:40 +00:00
|
|
|
define void @global_store_v3i64_unaligned(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
|
|
|
|
store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-10-01 17:15:17 +00:00
|
|
|
; SI-LABEL: {{^}}local_store_v3i64:
|
2014-02-07 20:29:40 +00:00
|
|
|
define void @local_store_v3i64(<3 x i64> addrspace(3)* %out, <3 x i64> %x) {
|
|
|
|
store <3 x i64> %x, <3 x i64> addrspace(3)* %out, align 32
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-10-01 17:15:17 +00:00
|
|
|
; SI-LABEL: {{^}}local_store_v3i64_unaligned:
|
2014-02-07 20:29:40 +00:00
|
|
|
define void @local_store_v3i64_unaligned(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
|
|
|
|
store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 1
|
|
|
|
ret void
|
|
|
|
}
|