1 ; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -S -inline | FileCheck %s
2 ; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -S -passes='cgscc(inline)' | FileCheck %s
3 ; Check that we only inline when we have compatible target attributes.
7 %call = call i32 (...) @baz()
10 ; CHECK: call i32 (...) @baz()
12 declare i32 @baz(...) #0
14 define i32 @bar() #1 {
16 %call = call i32 @foo()
19 ; CHECK: call i32 (...) @baz()
22 define i32 @qux() #0 {
24 %call = call i32 @bar()
27 ; CHECK: call i32 @bar()
30 define i32 @strict_align() #2 {
32 %call = call i32 @foo()
34 ; CHECK-LABEL: strict_align
35 ; CHECK: call i32 (...) @baz()
38 attributes #0 = { "target-cpu"="generic" "target-features"="+crc,+neon" }
39 attributes #1 = { "target-cpu"="generic" "target-features"="+crc,+neon,+crypto" }
40 attributes #2 = { "target-cpu"="generic" "target-features"="+crc,+neon,+strict-align" }