2014-02-07 21:29:40 +01:00
|
|
|
; XFAIL: *
|
2015-02-13 22:27:28 +01: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 21:29:40 +01:00
|
|
|
|
2014-10-01 19:15:17 +02:00
|
|
|
; SI-LABEL: {{^}}global_store_v3i64:
|
2014-11-05 15:50:53 +01:00
|
|
|
; SI: buffer_store_dwordx4
|
|
|
|
; SI: buffer_store_dwordx4
|
2014-02-07 21:29:40 +01: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 19:15:17 +02:00
|
|
|
; SI-LABEL: {{^}}global_store_v3i64_unaligned:
|
2014-02-07 21:29:40 +01: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 19:15:17 +02:00
|
|
|
; SI-LABEL: {{^}}local_store_v3i64:
|
2014-02-07 21:29:40 +01: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 19:15:17 +02:00
|
|
|
; SI-LABEL: {{^}}local_store_v3i64_unaligned:
|
2014-02-07 21:29:40 +01: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
|
|
|
|
}
|