File: fp16-vld.ll

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (46 lines) | stat: -rw-r--r-- 1,605 bytes parent folder | download | duplicates (12)
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
; RUN: llc -asm-verbose=false < %s | FileCheck %s

target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv8.2a-arm-unknown-eabihf"

define dso_local void @vec8(ptr nocapture readonly %V, i32 %N) local_unnamed_addr #0 {
; CHECK:      .LBB0_1:
; CHECK-NEXT: vld1.16 {d16, d17}, [r0]!
; CHECK-NEXT: subs r1, r1, #8
; CHECK-NEXT: bne .LBB0_1
entry:
  br label %vector.body

vector.body:
  %index = phi i32 [ 0, %entry ], [ %index.next, %vector.body ]
  %0 = getelementptr inbounds half, ptr %V, i32 %index
  %wide.load = load volatile <8 x half>, ptr %0, align 2
  %index.next = add i32 %index, 8
  %cmp = icmp eq i32 %index.next, %N
  br i1 %cmp, label %byeblock, label %vector.body

byeblock:
  ret void
}

define dso_local void @vec4(ptr nocapture readonly %V, i32 %N) local_unnamed_addr #0 {
; CHECK:      .LBB1_1:
; CHECK-NEXT: vld1.16 {d16}, [r0]!
; CHECK-NEXT: subs r1, r1, #4
; CHECK-NEXT:	bne	.LBB1_1
entry:
  br label %vector.body

vector.body:
  %index = phi i32 [ 0, %entry ], [ %index.next, %vector.body ]
  %0 = getelementptr inbounds half, ptr %V, i32 %index
  %wide.load = load volatile <4 x half>, ptr %0, align 2
  %index.next = add i32 %index, 4
  %cmp = icmp eq i32 %index.next, %N
  br i1 %cmp, label %byeblock, label %vector.body

byeblock:
  ret void
}

attributes #0 = { norecurse nounwind readonly "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "target-cpu"="generic" "target-features"="+armv8.2-a,+fullfp16,+strict-align,-thumb-mode" "unsafe-fp-math"="true" "use-soft-float"="false" }