Skip to content

Commit ab14eb2

Browse files
authored
[BOLT][test] Replace /dev/null with temp file (#73485)
NFC processing time script identifies tests by output filename. When `/dev/null` is used as output filename, we're unable to tell the source test, and the reports are unhelpful. Replace `/dev/null/` with `%t.null` which resolves the issue.
1 parent b29332a commit ab14eb2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+60
-60
lines changed

bolt/test/AArch64/got-ld64-relaxation.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// to the ADR+ADD sequence is properly recognized and handled by bolt
33

44
// RUN: yaml2obj %p/Inputs/got-ld64-relaxation.yaml &> %t.exe
5-
// RUN: llvm-bolt %t.exe -o /dev/null --print-fix-relaxations \
5+
// RUN: llvm-bolt %t.exe -o %t.null --print-fix-relaxations \
66
// RUN: --print-only=main | FileCheck %s
77

88
// CHECK: adrp x0, foo

bolt/test/AArch64/skip-got-rel.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
// normally.
44

55
RUN: yaml2obj %p/Inputs/skip-got-rel.yaml &> %t.exe
6-
RUN: llvm-bolt %t.exe -o /dev/null --print-cfg --print-only=_start | FileCheck %s
6+
RUN: llvm-bolt %t.exe -o %t.null --print-cfg --print-only=_start | FileCheck %s
77

88
CHECK: adr x0, foo2

bolt/test/RISCV/branch-no-secondary-entry.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// Test that no secondary entry points are created for basic block labels used
22
/// by branches.
33
// RUN: %clang %cflags -o %t %s
4-
// RUN: llvm-bolt -print-cfg -o /dev/null %t 2>&1 | FileCheck %s
4+
// RUN: llvm-bolt -print-cfg -o %t.null %t 2>&1 | FileCheck %s
55

66
// CHECK: Binary Function "_start" after building cfg {
77
// CHECK: IsMultiEntry: 0

bolt/test/RISCV/call-annotations.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: llvm-mc -triple riscv64 -mattr=+c -filetype obj -o %t.o %s
55
// RUN: ld.lld --emit-relocs -o %t %t.o
66
// RUN: llvm-bolt --enable-bat --print-cfg --print-fix-riscv-calls \
7-
// RUN: -o /dev/null %t | FileCheck %s
7+
// RUN: -o %t.null %t | FileCheck %s
88

99
.text
1010
.option norvc

bolt/test/RISCV/load-store.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang %cflags -o %t %s
22
// RUN: link_fdata --no-lbr %s %t %t.fdata
3-
// RUN: llvm-bolt %t -o /dev/null --data=%t.fdata --dyno-stats | FileCheck %s
3+
// RUN: llvm-bolt %t -o %t.null --data=%t.fdata --dyno-stats | FileCheck %s
44

55
// CHECK: BOLT-INFO: program-wide dynostats after all optimizations before SCTC and FOP (no change):
66
// CHECK: 3000 : executed instructions

bolt/test/RISCV/reloc-abs.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -Wl,--defsym='__global_pointer$'=0x2800 -o %t %s
2-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.data

bolt/test/RISCV/reloc-bb-split.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -o %t %s
2-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.data

bolt/test/RISCV/reloc-branch.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -o %t %s
2-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.text

bolt/test/RISCV/reloc-call.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -o %t %s
2-
// RUN: llvm-bolt --print-fix-riscv-calls --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-fix-riscv-calls --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.text

bolt/test/RISCV/reloc-got.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -o %t %s
2-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.data

bolt/test/RISCV/reloc-jal.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -o %t %s
2-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.text

bolt/test/RISCV/reloc-lohi.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: llvm-mc -triple riscv64 -filetype=obj -o %t.o %s
22
// RUN: ld.lld -q -o %t %t.o
3-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
3+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
44
// RUN: | FileCheck %s
55

66
.data

bolt/test/RISCV/reloc-pcrel.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -o %t %s
2-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.data

bolt/test/RISCV/reloc-rvc-branch.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -o %t %s
2-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.text

bolt/test/RISCV/reloc-rvc-jump.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang %cflags -o %t %s
2-
// RUN: llvm-bolt --print-cfg --print-only=_start -o /dev/null %t \
2+
// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \
33
// RUN: | FileCheck %s
44

55
.text

bolt/test/RISCV/reloc-tls.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: llvm-mc -triple riscv64 -filetype obj -o %t.o %s
22
// RUN: ld.lld --emit-relocs -o %t %t.o
3-
// RUN: llvm-bolt --print-cfg --print-only=tls_le,tls_ie -o /dev/null %t \
3+
// RUN: llvm-bolt --print-cfg --print-only=tls_le,tls_ie -o %t.null %t \
44
// RUN: | FileCheck %s
55

66
// CHECK-LABEL: Binary Function "tls_le{{.*}}" after building cfg {

bolt/test/X86/block-reordering.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# according to the new function layout.
33

44
RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
5-
RUN: llvm-bolt %t.exe -o /dev/null --data %p/Inputs/blarge.fdata \
5+
RUN: llvm-bolt %t.exe -o %t.null --data %p/Inputs/blarge.fdata \
66
RUN: --reorder-blocks=normal --print-finalized 2>&1 | FileCheck %s \
77
RUN: --check-prefix=CHECK
88

bolt/test/X86/branch-data.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Also checks that llvm-bolt disassembler and CFG builder is working properly.
44

55
RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
6-
RUN: llvm-bolt %t.exe -o /dev/null --data %p/Inputs/blarge.fdata --print-cfg | FileCheck %s
6+
RUN: llvm-bolt %t.exe -o %t.null --data %p/Inputs/blarge.fdata --print-cfg | FileCheck %s
77

88
CHECK: Binary Function "usqrt"
99
CHECK: State : CFG constructed

bolt/test/X86/bug-function-layout-execount.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# RUN: link_fdata %s %t.o %t.fdata
77
# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
88
# RUN: llvm-bolt %t.exe --data %t.fdata --lite --reorder-functions=exec-count \
9-
# RUN: -v=2 --debug-only=hfsort -o /dev/null 2>&1 | FileCheck %s
9+
# RUN: -v=2 --debug-only=hfsort -o %t.null 2>&1 | FileCheck %s
1010

1111
# CHECK: Starting pass: reorder-functions
1212
# CHECK-NEXT: hot func func2 (1500)

bolt/test/X86/call-zero.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
44
# RUN: %clang %cflags %t.o -o %t.exe
5-
# RUN: llvm-bolt %t.exe -o /dev/null -v=2 2>&1 | FileCheck %s
5+
# RUN: llvm-bolt %t.exe -o %t.null -v=2 2>&1 | FileCheck %s
66
# CHECK: Function main has a call to address zero.
77

88
.text

bolt/test/X86/cfi-instrs-count.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
55
# RUN: %clang %cflags %t.o -o %t.exe
6-
# RUN: llvm-bolt %t.exe -o /dev/null --print-cfg 2>&1 | FileCheck %s
6+
# RUN: llvm-bolt %t.exe -o %t.null --print-cfg 2>&1 | FileCheck %s
77
#
88
# CHECK: Binary Function "_Z7catchitv" after building cfg {
99
# CHECK: CFI Instrs : 6

bolt/test/X86/checkvma-large-section.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
REQUIRES: asserts
33
RUN: split-file %s %t
44
RUN: yaml2obj %t/yaml -o %t.exe --max-size=0
5-
RUN: llvm-bolt %t.exe -o /dev/null --allow-stripped
5+
RUN: llvm-bolt %t.exe -o %t.null --allow-stripped
66
#--- yaml
77
--- !ELF
88
FileHeader:

bolt/test/X86/data-to-data-pcrel.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# RUN: llvm-strip --strip-unneeded %t.o
55
# RUN: ld.lld %t.o -o %t.exe -q --unresolved-symbols=ignore-all
66
# RUN: llvm-readelf -Wr %t.exe | FileCheck %s
7-
# RUN: llvm-bolt --strict %t.exe --relocs -o /dev/null
7+
# RUN: llvm-bolt --strict %t.exe --relocs -o %t.null
88

99
.text
1010
.globl _start

bolt/test/X86/double-rel.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
88
# RUN: ld.lld %t.o -o %t.exe -q --Tdata=0x80000
9-
# RUN: llvm-bolt %t.exe --relocs -o /dev/null --print-only=_start --print-disasm \
9+
# RUN: llvm-bolt %t.exe --relocs -o %t.null --print-only=_start --print-disasm \
1010
# RUN: | FileCheck %s --check-prefix=CHECK-BOLT
1111
# RUN: llvm-objdump -d --print-imm-hex %t.exe \
1212
# RUN: | FileCheck %s --check-prefix=CHECK-OBJDUMP

bolt/test/X86/exceptions-args.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
RUN: %clang %cflags %p/../Inputs/stub.c -fPIC -pie -shared -o %t.so
55
RUN: %clangxx %cxxflags -no-pie %p/Inputs/exc_args.s -o %t %t.so -Wl,-z,notext
6-
RUN: llvm-bolt %t -o /dev/null --print-finalized --print-only=main | FileCheck %s
6+
RUN: llvm-bolt %t -o %t.null --print-finalized --print-only=main | FileCheck %s
77

88
CHECK: Binary Function "main" after finalize-functions
99
CHECK: callq _Z3fooiiiiiiii {{.*}} GNU_args_size = 16

bolt/test/X86/fptr-addend-pcrel.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
77
# RUN: llvm-strip --strip-unneeded %t.o
88
# RUN: ld.lld %t.o -o %t.exe -q
9-
# RUN: llvm-bolt %t.exe --relocs -o /dev/null --print-only=foo --print-disasm \
9+
# RUN: llvm-bolt %t.exe --relocs -o %t.null --print-only=foo --print-disasm \
1010
# RUN: | FileCheck %s
1111

1212
.text

bolt/test/X86/gotpcrelx.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# RUN: ld.lld %t.o -o %t.no-relax.exe -q --no-relax
1313
# RUN: llvm-bolt %t.exe --relocs -o %t.out --print-cfg --print-only=_start \
1414
# RUN: |& FileCheck --check-prefix=BOLT %s
15-
# RUN: llvm-bolt %t.pie.exe -o /dev/null --print-cfg --print-only=_start \
15+
# RUN: llvm-bolt %t.pie.exe -o %t.null --print-cfg --print-only=_start \
1616
# RUN: |& FileCheck --check-prefix=PIE-BOLT %s
17-
# RUN: llvm-bolt %t.no-relax.exe -o /dev/null --print-cfg --print-only=_start \
17+
# RUN: llvm-bolt %t.no-relax.exe -o %t.null --print-cfg --print-only=_start \
1818
# RUN: |& FileCheck --check-prefix=NO-RELAX-BOLT %s
1919
# RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex \
2020
# RUN: %t.out | FileCheck --check-prefix=DISASM %s

bolt/test/X86/icp-inline.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Without -icp-inline option, ICP is performed
2222
# RUN: llvm-bolt %t.exe --icp=calls --icp-calls-topn=1 --inline-small-functions\
23-
# RUN: -o /dev/null --lite=0 \
23+
# RUN: -o %t.null --lite=0 \
2424
# RUN: --inline-small-functions-bytes=4 --print-icp --data %t.fdata \
2525
# RUN: | FileCheck %s --check-prefix=CHECK-NO-ICP-INLINE
2626
# CHECK-NO-ICP-INLINE: Binary Function "main" after indirect-call-promotion
@@ -29,7 +29,7 @@
2929

3030
# With -icp-inline option, ICP is not performed (size of bar > inline threshold)
3131
# RUN: llvm-bolt %t.exe --icp=calls --icp-calls-topn=1 --inline-small-functions\
32-
# RUN: -o /dev/null --lite=0 \
32+
# RUN: -o %t.null --lite=0 \
3333
# RUN: --inline-small-functions-bytes=4 --icp-inline --print-icp \
3434
# RUN: --data %t.fdata | FileCheck %s --check-prefix=CHECK-ICP-INLINE
3535
# CHECK-ICP-INLINE: Binary Function "main" after indirect-call-promotion

bolt/test/X86/indirect-goto.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Check llvm-bolt processes binaries compiled from sources that use indirect goto.
22
RUN: %clang %cflags -no-pie %S/Inputs/indirect_goto.c -Wl,-q -o %t
3-
RUN: llvm-bolt %t -o /dev/null --relocs=1 --print-cfg --print-only=main \
3+
RUN: llvm-bolt %t -o %t.null --relocs=1 --print-cfg --print-only=main \
44
RUN: --strict \
55
RUN: 2>&1 | FileCheck %s
66

bolt/test/X86/is-strip.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# RUN: llvm-bolt %t -o %t.out 2>&1 | FileCheck %s -check-prefix=CHECK-NOSTRIP
55
# RUN: cp %t %t.stripped
66
# RUN: llvm-strip -s %t.stripped
7-
# RUN: not llvm-bolt %t.stripped -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK-STRIP
7+
# RUN: not llvm-bolt %t.stripped -o %t.null 2>&1 | FileCheck %s -check-prefix=CHECK-STRIP
88
# RUN: llvm-bolt %t.stripped -o %t.out --allow-stripped 2>&1 | FileCheck %s -check-prefix=CHECK-NOSTRIP
99

1010
# CHECK-NOSTRIP-NOT: BOLT-ERROR: stripped binaries are not supported.

bolt/test/X86/jmpjmp.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %S/Inputs/jmpjmp.s -o %t.o
55
RUN: %clang %cflags %t.o -o %t.exe
6-
RUN: llvm-bolt %t.exe -o /dev/null --print-cfg 2>&1 | FileCheck %s
6+
RUN: llvm-bolt %t.exe -o %t.null --print-cfg 2>&1 | FileCheck %s
77

88
CHECK: Binary Function "testfunc"
99
CHECK: State : CFG constructed

bolt/test/X86/jump-table-footprint-reduction.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN: %S/Inputs/jump_table_footprint_reduction.s -o %t.o
66
RUN: link_fdata %S/Inputs/jump_table_footprint_reduction.s %t.o %t.fdata --nmtool llvm-nm
77
RUN: llvm-strip --strip-unneeded %t.o
88
RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
9-
RUN: llvm-bolt %t.exe --data %t.fdata -o /dev/null \
9+
RUN: llvm-bolt %t.exe --data %t.fdata -o %t.null \
1010
RUN: --jump-tables=move --jt-footprint-reduction --assume-abi --relocs \
1111
RUN: | FileCheck %s
1212

bolt/test/X86/jump-table-pic-order.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# in the same order as they appear in the input code.
33

44
RUN: %clang %cflags %S/Inputs/jump-table-pic.s -o %t.exe -Wl,-q
5-
RUN: llvm-bolt %t.exe --strict --print-cfg --print-only=main -o /dev/null \
5+
RUN: llvm-bolt %t.exe --strict --print-cfg --print-only=main -o %t.null \
66
RUN: | FileCheck %s
77

88
CHECK: BB Layout : {{.*, .*, .*,}} [[BB4to6:.*, .*, .*]]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Verifies that BOLT detects fixed destination of indirect jump
22

33
RUN: %clang %cflags -no-pie %S/Inputs/jump_table_reference.s -Wl,-q -o %t
4-
RUN: llvm-bolt %t --relocs -o /dev/null 2>&1 | FileCheck %s
4+
RUN: llvm-bolt %t --relocs -o %t.null 2>&1 | FileCheck %s
55

66
CHECK: BOLT-INFO: fixed indirect branch detected in main

bolt/test/X86/layout-heuristic.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Also checks that llvm-bolt disassembler and CFG builder is working properly.
66

77
RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
8-
RUN: llvm-bolt %t.exe -o /dev/null --data %p/Inputs/blarge.fdata \
8+
RUN: llvm-bolt %t.exe -o %t.null --data %p/Inputs/blarge.fdata \
99
RUN: --reorder-blocks=normal --print-cfg --print-reordered \
1010
RUN: --funcs=main,SolveCubic,usqrt --sequential-disassembly \
1111
RUN: 2>&1 | FileCheck %s

bolt/test/X86/line-number.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Verifies that the extraction of DWARF line number information is correct.
22

33
RUN: %clangxx %cxxflags %S/Inputs/linenumber.cpp -g -o %t
4-
RUN: llvm-bolt %t -o /dev/null --print-reordered --update-debug-sections \
4+
RUN: llvm-bolt %t -o %t.null --print-reordered --update-debug-sections \
55
RUN: --print-debug-info --reorder-blocks=reverse --sequential-disassembly \
66
RUN: 2>&1 | FileCheck %s
77

bolt/test/X86/lto-name-match.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: link_fdata %s %t.o %t.fdata
33
# RUN: llvm-strip --strip-unneeded %t.o
44
# RUN: %clang %cflags %t.o -o %t.exe
5-
# RUN: llvm-bolt %t.exe --data %t.fdata -o /dev/null | FileCheck %s
5+
# RUN: llvm-bolt %t.exe --data %t.fdata -o %t.null | FileCheck %s
66

77
## Check that profile is correctly matched by functions with variable suffixes.
88
## E.g., LTO-generated name foo.llvm.123 should match foo.llvm.*.

bolt/test/X86/no-entry-reordering.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %S/Inputs/entry.s -o %
55
RUN: link_fdata %S/Inputs/entry.s %t.o %t.fdata --nmtool llvm-nm
66
RUN: llvm-strip --strip-unneeded %t.o
77
RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
8-
RUN: llvm-bolt %t.exe --data %t.fdata -o /dev/null --reorder-blocks=normal \
8+
RUN: llvm-bolt %t.exe --data %t.fdata -o %t.null --reorder-blocks=normal \
99
RUN: --funcs=_start --print-reordered --sequential-disassembly | FileCheck %s
1010

1111
CHECK: BB Layout : .LBB00, {{.*}}

bolt/test/X86/pt_gnu_relro.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# READELF: Section to Segment mapping:
2222
# READELF: 04 .got
2323

24-
# RUN: llvm-bolt %t.exe --relocs -o /dev/null -v=1 \
24+
# RUN: llvm-bolt %t.exe --relocs -o %t.null -v=1 \
2525
# RUN: |& FileCheck --check-prefix=BOLT %s
2626
# BOLT: BOLT-INFO: marking .got as GNU_RELRO
2727

bolt/test/X86/reader-stale-yaml.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
55
# Testing "usqrt"
6-
RUN: llvm-bolt %t.exe -o /dev/null --b %p/Inputs/blarge_profile_stale.yaml \
6+
RUN: llvm-bolt %t.exe -o %t.null --b %p/Inputs/blarge_profile_stale.yaml \
77
RUN: --print-cfg --print-only=usqrt --infer-stale-profile=1 \
88
RUN: --profile-ignore-hash=1 --profile-use-dfs=0 2>&1 | FileCheck %s -check-prefix=CHECK1
99
# Testing "SolveCubic"
10-
RUN: llvm-bolt %t.exe -o /dev/null --b %p/Inputs/blarge_profile_stale.yaml \
10+
RUN: llvm-bolt %t.exe -o %t.null --b %p/Inputs/blarge_profile_stale.yaml \
1111
RUN: --print-cfg --print-only=SolveCubic --infer-stale-profile=1 \
1212
RUN: --profile-ignore-hash=1 --profile-use-dfs=0 2>&1 | FileCheck %s -check-prefix=CHECK2
1313

bolt/test/X86/reader.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This script checks that DataReader in llvm-bolt is reading data correctly
22

33
RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
4-
RUN: llvm-bolt %t.exe -o /dev/null --data %p/Inputs/blarge.fdata --dump-data \
4+
RUN: llvm-bolt %t.exe -o %t.null --data %p/Inputs/blarge.fdata --dump-data \
55
RUN: 2>&1 | sort | FileCheck %s -check-prefix=CHECK
66

77
CHECK: main 1105 SolveCubic 0 0 151

bolt/test/X86/sctc-bug.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Check that we don't accidentally optimize out a tail call.
22

33
RUN: %clang %cflags %S/Inputs/sctc_bug.s -o %t
4-
RUN: llvm-bolt %t -o /dev/null --funcs=main --print-after-lowering \
4+
RUN: llvm-bolt %t -o %t.null --funcs=main --print-after-lowering \
55
RUN: 2>&1 | FileCheck %s
66

77
CHECK: jp .L{{.*}}

bolt/test/X86/sctc-bug2.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Check that conditional tail call is not treated as a regular tail call by SCTC.
22

33
RUN: %clang %cflags %S/Inputs/sctc_bug2.s -o %t
4-
RUN: llvm-bolt %t -o /dev/null --funcs=main --print-after-lowering \
4+
RUN: llvm-bolt %t -o %t.null --funcs=main --print-after-lowering \
55
RUN: --sequential-disassembly 2>&1 | FileCheck %s
66

77
CHECK: .LFT1

bolt/test/X86/sctc-bug3.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Check that we don't accidentally optimize out a tail call.
22

33
RUN: %clang %cflags %S/Inputs/sctc_bug3.s -o %t
4-
RUN: llvm-bolt %t -o /dev/null --funcs=main --print-after-lowering \
4+
RUN: llvm-bolt %t -o %t.null --funcs=main --print-after-lowering \
55
RUN: --sequential-disassembly 2>&1 | FileCheck %s
66

77
CHECK: .LBB00 (1 instructions, align : 1)

bolt/test/X86/sctc-bug4.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Check that fallthrough blocks are handled properly.
22

33
RUN: %clang %cflags %S/Inputs/sctc_bug4.s -o %t
4-
RUN: llvm-bolt %t -o /dev/null \
4+
RUN: llvm-bolt %t -o %t.null \
55
RUN: -funcs=test_func -print-sctc -sequential-disassembly 2>&1 | FileCheck %s
66

77
CHECK: .Ltmp2 (3 instructions, align : 1)

0 commit comments

Comments
 (0)