File: isel-expand-unaligned-loads-noindexed.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (67 lines) | stat: -rw-r--r-- 3,022 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
; RUN: llc -march=hexagon -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s

; Check for successful compilation.
; CHECK: vmem

target triple = "hexagon"

; Function Attrs: nounwind
define dso_local void @f0(i8* %a0, i8* %a1) local_unnamed_addr #0 {
b0:
  br label %b1

b1:                                               ; preds = %b1, %b0
  %v0 = phi i32 [ %v18, %b1 ], [ 0, %b0 ]
  %v1 = getelementptr inbounds i8, i8* %a1, i32 %v0
  %v2 = load <64 x i8>, <64 x i8>* undef, align 1, !tbaa !0, !alias.scope !3
  %v3 = add <64 x i8> zeroinitializer, %v2
  %v4 = getelementptr inbounds i8, i8* %a0, i32 undef
  %v5 = getelementptr inbounds i8, i8* %a0, i32 undef
  %v6 = getelementptr inbounds i8, i8* %a0, i32 undef
  store i8 0, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  %v7 = extractelement <64 x i8> %v3, i32 12
  store i8 %v7, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 0, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 undef, i8* %v4, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 0, i8* %v5, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 0, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  %v8 = extractelement <64 x i8> %v3, i32 36
  store i8 %v8, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 0, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  %v9 = extractelement <64 x i8> %v3, i32 38
  store i8 %v9, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 0, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  %v10 = extractelement <64 x i8> %v3, i32 41
  store i8 %v10, i8* %v6, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 0, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 undef, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  %v11 = extractelement <64 x i8> %v3, i32 55
  store i8 %v11, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 0, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  %v12 = extractelement <64 x i8> %v3, i32 58
  store i8 %v12, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  store i8 0, i8* undef, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  %v13 = bitcast i8* %v1 to <64 x i8>*
  %v14 = load <64 x i8>, <64 x i8>* %v13, align 1, !tbaa !0, !alias.scope !3
  %v15 = add <64 x i8> zeroinitializer, %v14
  %v16 = getelementptr inbounds i8, i8* %a0, i32 undef
  %v17 = extractelement <64 x i8> %v15, i32 23
  store i8 %v17, i8* %v16, align 1, !tbaa !0, !alias.scope !6, !noalias !8
  %v18 = add i32 %v0, 64
  br label %b1
}

attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx-length64b,+hvxv60" }

!0 = !{!1, !1, i64 0}
!1 = !{!"omnipotent char", !2, i64 0}
!2 = !{!"Simple C/C++ TBAA"}
!3 = !{!4}
!4 = distinct !{!4, !5}
!5 = distinct !{!5, !"LVerDomain"}
!6 = !{!7}
!7 = distinct !{!7, !5}
!8 = !{!4, !9, !10, !11}
!9 = distinct !{!9, !5}
!10 = distinct !{!10, !5}
!11 = distinct !{!11, !5}