Peter Collingbourne | 7af93e3 | 2017-01-26 21:38:48 +0000 | [diff] [blame] | 1 | ; REQUIRES: x86-registered-target |
| 2 | |
Peter Collingbourne | f5d1712 | 2017-01-26 21:09:48 +0000 | [diff] [blame] | 3 | ; RUN: opt -module-summary -o %t1.o %s |
| 4 | ; RUN: llvm-lto -thinlto -o %t %t1.o |
| 5 | |
Peter Collingbourne | dbd2fed | 2017-06-15 17:26:13 +0000 | [diff] [blame] | 6 | ; 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 Collingbourne | f5d1712 | 2017-01-26 21:09:48 +0000 | [diff] [blame] | 8 | ; 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 Christopher | f6ee1f3 | 2017-02-10 04:35:21 +0000 | [diff] [blame] | 14 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
Peter Collingbourne | f5d1712 | 2017-01-26 21:09:48 +0000 | [diff] [blame] | 15 | target triple = "x86_64-unknown-linux-gnu" |
| 16 | |
| 17 | declare void @f2() |
| 18 | |
| 19 | define void @f1() { |
| 20 | call void @f2() |
| 21 | ret void |
| 22 | } |