blob: de6fd7a9cfcdfda0c294d20b48d066c09ec561c6 [file] [log] [blame]
Eric Christophercee313d2019-04-17 04:52:47 +00001; Do setup work for all below tests: generate bitcode and combined index
2; RUN: opt -module-summary %s -o %t.bc
3; RUN: opt -module-summary %p/Inputs/inlineasm.ll -o %t2.bc
4; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc
5
6; Attempt the import now, ensure below that file containing inline assembly
7; is not imported from. Otherwise we would need to promote its local variable
8; used in the inline assembly, which would not see the rename.
9; RUN: opt -function-import -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s
10
11define i32 @main() #0 {
12entry:
13 %f = alloca i64, align 8
14 call void @foo(i64* %f)
15 ret i32 0
16}
17
18; CHECK: declare void @foo(i64*)
19declare void @foo(i64*) #1