File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ ; RUN: opt %s -o %t -module-summary -mtriple x86_64-unknown-linux-musl
2+ ; RUN: llvm-lto2 run -o %t2 \
3+ ; RUN: -r %t,foo,plx \
4+ ; RUN: -r %t,memcmp,x \
5+ ; RUN: -r %t,bcmp,pl --bitcode-libfuncs=bcmp %t -save-temps
6+ ; RUN: llvm-dis %t2.1.4.opt.bc -o - | FileCheck %s
7+
8+ define i1 @foo (ptr %0 , ptr %1 , i64 %2 ) {
9+ ; CHECK-LABEL: define{{.*}}i1 @foo
10+ ; CHECK-NEXT: %cmp = {{.*}}call i32 @memcmp
11+ ; CHECK-NEXT: %eq = icmp eq i32 %bcmp, 0
12+ ; CHECK-NEXT: ret i1 %eq
13+
14+ %cmp = call i32 @memcmp (ptr %0 , ptr %1 , i64 %2 )
15+ %eq = icmp eq i32 %cmp , 0
16+ ret i1 %eq
17+ }
18+
19+ declare i32 @memcmp (ptr , ptr , i64 )
20+ declare i32 @bcmp (ptr , ptr , i64 )
Original file line number Diff line number Diff line change @@ -232,6 +232,10 @@ static cl::opt<bool>
232232 AllVtablesHaveTypeInfos (" all-vtables-have-type-infos" , cl::Hidden,
233233 cl::desc (" All vtables have type infos" ));
234234
235+ static cl::list<std::string>
236+ BitcodeLibFuncs (" bitcode-libfuncs" , cl::Hidden,
237+ cl::desc (" set of libfuncs implemented in bitcode" ));
238+
235239static void check (Error E, std::string Msg) {
236240 if (!E)
237241 return ;
You can’t perform that action at this time.
0 commit comments