annotate bolt/test/bolt-icf.test @ 243:a916df8444bf

add tag
author matac
date Fri, 11 Aug 2023 15:57:02 +0900
parents c4bab56944e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
1 # Check for the replacement of calls to identical functions.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3 REQUIRES: system-linux
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5 RUN: %clangxx %p/Inputs/bolt_icf.cpp -g -Wl,-q -o %t.exe
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6 RUN: llvm-bolt %t.exe --relocs -o %t --icf 2>&1 | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7 RUN: llvm-nm -n %t | FileCheck %s -check-prefix=CHECK-SYM
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 CHECK: BOLT-INFO: ICF folded [[#]] out of [[#]] functions in [[#]] passes.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11 # Check that symbols are updated correctly in the symbol table
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 CHECK-SYM-DAG: [[#%x,FIZ:]] T _Z3fizv
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13 CHECK-SYM-DAG: [[#FIZ]] T _Z3fazv
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14 CHECK-SYM-DAG: [[#%x,ZIP:]] T _Z3zipv
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
15 CHECK-SYM-DAG: [[#ZIP]] T _Z3zapv
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
16 CHECK-SYM-DAG: [[#%x,FOO:]] T _Z3foov
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
17 CHECK-SYM-DAG: [[#FOO]] T _Z3barv