1 ; RUN: llc -march=hexagon < %s | FileCheck %s
3 ; Check that the store to Q6VecPredResult does not get expanded into multiple
4 ; stores. There should be no memd's. This relies on the alignment specified
5 ; in the data layout string, so don't provide one here to make sure that the
6 ; default one from HexagonTargetMachine is correct.
11 @Q6VecPredResult = common global <16 x i32> zeroinitializer, align 64
13 define i32 @foo() #0 {
15 %v0 = tail call <16 x i32> @llvm.hexagon.V6.lvsplatw(i32 1)
16 %v1 = tail call <64 x i1> @llvm.hexagon.V6.vandvrt(<16 x i32> %v0, i32 -2147483648)
17 %v2 = tail call <16 x i32> @llvm.hexagon.V6.vandqrt(<64 x i1> %v1, i32 -1)
18 store <16 x i32> %v2, ptr @Q6VecPredResult, align 64, !tbaa !1
19 tail call void @print_vecpred(i32 64, ptr @Q6VecPredResult) #3
23 declare <64 x i1> @llvm.hexagon.V6.vandvrt(<16 x i32>, i32) #1
24 declare <16 x i32> @llvm.hexagon.V6.vandqrt(<64 x i1>, i32) #1
25 declare <16 x i32> @llvm.hexagon.V6.lvsplatw(i32) #1
27 declare void @print_vecpred(i32, ptr) #2
29 attributes #0 = { nounwind "target-cpu"="hexagonv66" "target-features"="+hvxv66,+hvx-length64b" }
30 attributes #1 = { nounwind readnone }
31 attributes #2 = { nounwind }
34 !2 = !{!"omnipotent char", !3, i64 0}
35 !3 = !{!"Simple C/C++ TBAA"}