blob: 385d98c74d944a69d4f56624a965020e911f504d [file] [log] [blame]
Peter Collingbourne7af93e32017-01-26 21:38:48 +00001; REQUIRES: x86-registered-target
2
Peter Collingbournef5d17122017-01-26 21:09:48 +00003; RUN: opt -module-summary -o %t1.o %s
4; RUN: llvm-lto -thinlto -o %t %t1.o
5
Peter Collingbournedbd2fed2017-06-15 17:26:13 +00006; RUN: opt -module-summary -o %t2.o %S/Inputs/thinlto-multi-module.ll
7; RUN: llvm-cat -b -o %t1cat.o %t2.o %t1.o
Peter Collingbournef5d17122017-01-26 21:09:48 +00008; RUN: cp %t1cat.o %t1.o
9; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc
10; RUN: llvm-nm %t3.o | FileCheck --check-prefix=CHECK-OBJ %s
11; CHECK-OBJ: T f1
12; CHECK-OBJ: U f2
13
Eric Christopherf6ee1f32017-02-10 04:35:21 +000014target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Peter Collingbournef5d17122017-01-26 21:09:48 +000015target triple = "x86_64-unknown-linux-gnu"
16
17declare void @f2()
18
19define void @f1() {
20 call void @f2()
21 ret void
22}