xref: /llvm-project/llvm/test/Transforms/FunctionImport/inlineasm.ll (revision 3713bc8a0b38c0c77238e3010e7dd53d50f3c523)
1; 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 -passes=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(ptr %f)
15  ret i32 0
16}
17
18; CHECK: declare void @foo(ptr)
19declare void @foo(ptr) #1
20