Xamarin Public Jenkins (auto-signing) 8625704ad8 Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
2018-10-25 08:34:57 +00:00

32 lines
836 B
LLVM

; RUN: llc -march=hexagon -mcpu=hexagonv60 -mattr=+hvxv60,hvx-length64b < %s | FileCheck %s
; CHECK-LABEL: aligned_load:
; CHECK: = vmem({{.*}})
; CHECK-LABEL: aligned_store:
; CHECK: vmem({{.*}}) =
; CHECK-LABEL: unaligned_load:
; CHECK: = vmemu({{.*}})
; CHECK-LABEL: unaligned_store:
; CHECK: vmemu({{.*}}) =
define <16 x i32> @aligned_load(<16 x i32>* %p, <16 x i32> %a) {
%v = load <16 x i32>, <16 x i32>* %p, align 64
ret <16 x i32> %v
}
define void @aligned_store(<16 x i32>* %p, <16 x i32> %a) {
store <16 x i32> %a, <16 x i32>* %p, align 64
ret void
}
define <16 x i32> @unaligned_load(<16 x i32>* %p, <16 x i32> %a) {
%v = load <16 x i32>, <16 x i32>* %p, align 32
ret <16 x i32> %v
}
define void @unaligned_store(<16 x i32>* %p, <16 x i32> %a) {
store <16 x i32> %a, <16 x i32>* %p, align 32
ret void
}