aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/Inline/ARM/inline-dotprod.ll
blob: 2f8dbb7f0182215b5d564e4804c953dbfde7dc82 (plain)
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
; RUN: opt < %s -mtriple=arm-unknown-linux-gnu -S -passes=inline | FileCheck %s
; RUN: opt < %s -mtriple=arm-unknown-linux-gnu -S -passes='cgscc(inline)' | FileCheck %s

declare i32 @foo(...) #0

define i32 @callee() #0 {
entry:
  %call = call i32 (...) @foo()
  ret i32 %call
}

define i32 @dotcallee() #1 {
entry:
  %call = call i32 (...) @foo()
  ret i32 %call
}

define i32 @dotcaller() #1 {
entry:
  %call = call i32 @callee()
  ret i32 %call
; CHECK-LABEL: dotcaller
; CHECK: call i32 (...) @foo()
}

define i32 @caller() #0 {
entry:
  %call = call i32 @dotcallee()
  ret i32 %call
; CHECK-LABEL: caller
; CHECK: call i32 @dotcallee()
}

attributes #0 = { "target-cpu"="generic" "target-features"="+dsp,+neon" }
attributes #1 = { "target-cpu"="generic" "target-features"="+dsp,+neon,+dotprod" }