1; RUN: llc -march=hexagon -enable-hexagon-hvx < %s | FileCheck %s
2; CHECK-LABEL: aligned_load:
3; CHECK: = vmem({{.*}})
4; CHECK-LABEL: aligned_store:
5; CHECK: vmem({{.*}}) =
6; CHECK-LABEL: unaligned_load:
7; CHECK: = vmemu({{.*}})
8; CHECK-LABEL: unaligned_store:
9; CHECK: vmemu({{.*}}) =
10
11define <16 x i32> @aligned_load(<16 x i32>* %p, <16 x i32> %a) {
12  %v = load <16 x i32>, <16 x i32>* %p, align 64
13  ret <16 x i32> %v
14}
15
16define void @aligned_store(<16 x i32>* %p, <16 x i32> %a) {
17  store <16 x i32> %a, <16 x i32>* %p, align 64
18  ret void
19}
20
21define <16 x i32> @unaligned_load(<16 x i32>* %p, <16 x i32> %a) {
22  %v = load <16 x i32>, <16 x i32>* %p, align 32
23  ret <16 x i32> %v
24}
25
26define void @unaligned_store(<16 x i32>* %p, <16 x i32> %a) {
27  store <16 x i32> %a, <16 x i32>* %p, align 32
28  ret void
29}
30
31
32