| 1 |
; REQUIRES: x86-registered-target |
| 2 |
|
| 3 |
; RUN: opt -module-summary -o %t1.o %s |
| 4 |
; RUN: llvm-lto -thinlto -o %t %t1.o |
| 5 |
|
| 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 |
| 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 |
|
| 14 |
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" |
| 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 |
} |