annotate test/ThinLTO/X86/save_objects.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 803732b1fca8
children c2174574ed3a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: opt -module-hash -module-summary %s -o %t.bc
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 ; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o %t2.bc
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; Check that the generating object files is working without cache
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 ; RUN: rm -Rf %t.thin.out
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 ; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 ; RUN: ls %t.thin.out | count 2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; Same with cache
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; RUN: rm -Rf %t.thin.out
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; RUN: rm -Rf %t.cache && mkdir %t.cache
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 ; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 ; RUN: ls %t.thin.out | count 2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 ; RUN: ls %t.cache | count 3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 ; Same with hot cache
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 ; RUN: rm -Rf %t.thin.out
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 ; RUN: rm -Rf %t.cache && mkdir %t.cache
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 ; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 ; RUN: ls %t.thin.out | count 2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 ; RUN: ls %t.cache | count 3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 target triple = "x86_64-apple-macosx10.11.0"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 define void @globalfunc() #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 entry:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 }