2014-04-29 23:12:53 +00:00
|
|
|
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI %s
|
2013-10-30 23:30:05 +00:00
|
|
|
|
|
|
|
; SI-LABEL: @unaligned_load_store_i32:
|
2013-11-13 23:36:50 +00:00
|
|
|
; DS_READ_U32 {{v[0-9]+}}, 0, [[REG]]
|
2013-10-30 23:30:05 +00:00
|
|
|
define void @unaligned_load_store_i32(i32 addrspace(3)* %p, i32 addrspace(3)* %r) nounwind {
|
|
|
|
%v = load i32 addrspace(3)* %p, align 1
|
|
|
|
store i32 %v, i32 addrspace(3)* %r, align 1
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; SI-LABEL: @unaligned_load_store_v4i32:
|
2013-11-13 23:36:50 +00:00
|
|
|
; DS_READ_U32 {{v[0-9]+}}, 0, [[REG]]
|
2013-10-30 23:30:05 +00:00
|
|
|
define void @unaligned_load_store_v4i32(<4 x i32> addrspace(3)* %p, <4 x i32> addrspace(3)* %r) nounwind {
|
|
|
|
%v = load <4 x i32> addrspace(3)* %p, align 1
|
|
|
|
store <4 x i32> %v, <4 x i32> addrspace(3)* %r, align 1
|
|
|
|
ret void
|
|
|
|
}
|