6 changes: 3 additions & 3 deletions bolt/test/X86/split-all-lptrampoline.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This test checks that trampolines are inserted in split fragments if
# necessary. There are 4 LSDA ranges with a landing pad to three landing pads.
# After splitting all blocks, there have to be 4 trampolines in the output.
## This test checks that trampolines are inserted in split fragments if
## necessary. There are 4 LSDA ranges with a landing pad to three landing pads.
## After splitting all blocks, there have to be 4 trampolines in the output.

# RUN: llvm-mc --filetype=obj --triple x86_64-unknown-unknown %s -o %t.o
# RUN: %clangxx %cxxflags %t.o -o %t.exe -Wl,-q -pie
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/split-all.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test split all block strategy
## Test split all block strategy

# RUN: llvm-mc --filetype=obj --triple x86_64-unknown-unknown %s -o %t.o
# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
Expand Down
22 changes: 11 additions & 11 deletions bolt/test/X86/split-func-icf.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This reproduces an issue where two cold fragments are folded into one, so the
# fragment has two parents.
# The fragment is only reachable through a jump table, so all functions must be
# ignored.
## This reproduces an issue where two cold fragments are folded into one, so the
## fragment has two parents.
## The fragment is only reachable through a jump table, so all functions must be
## ignored.

# REQUIRES: system-linux

Expand All @@ -27,10 +27,10 @@ main:
LBB0:
andl $0xf, %ecx
cmpb $0x4, %cl
# exit through ret
## exit through ret
ja LBB3

# jump table dispatch, jumping to label indexed by val in %ecx
## jump table dispatch, jumping to label indexed by val in %ecx
LBB1:
leaq JUMP_TABLE1(%rip), %r8
movzbl %cl, %ecx
Expand All @@ -55,7 +55,7 @@ LBB20:
# exit through ret
ja LBB23

# jump table dispatch, jumping to label indexed by val in %ecx
## jump table dispatch, jumping to label indexed by val in %ecx
LBB21:
leaq JUMP_TABLE2(%rip), %r8
movzbl %cl, %ecx
Expand All @@ -70,23 +70,23 @@ LBB23:
ret
.size main2, .-main2

# cold fragment is only reachable through jump table
## cold fragment is only reachable through jump table
.globl main2.cold.1
.type main2.cold.1, %function
main2.cold.1:
.globl main.cold.1
.type main.cold.1, %function
.p2align 2
main.cold.1:
# load bearing nop: pad LBB4 so that it can't be treated
# as __builtin_unreachable by analyzeJumpTable
## load bearing nop: pad LBB4 so that it can't be treated
## as __builtin_unreachable by analyzeJumpTable
nop
LBB4:
callq abort
.size main.cold.1, .-main.cold.1

.rodata
# jmp table, entries must be R_X86_64_PC32 relocs
## jmp table, entries must be R_X86_64_PC32 relocs
.globl JUMP_TABLE1
JUMP_TABLE1:
.long LBB2-JUMP_TABLE1
Expand Down
22 changes: 11 additions & 11 deletions bolt/test/X86/split-func-jump-table-fragment-bidirection.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This reproduces an issue where two fragments of same function access same
# jump table, which means at least one fragment visits the other, i.e., one
# of them has split jump table. As a result, all of them will be marked as
# non-simple function.
## This reproduces an issue where two fragments of same function access same
## jump table, which means at least one fragment visits the other, i.e., one
## of them has split jump table. As a result, all of them will be marked as
## non-simple function.

# REQUIRES: system-linux

Expand All @@ -21,10 +21,10 @@ main:
LBB0:
andl $0xf, %ecx
cmpb $0x4, %cl
# exit through ret
## exit through ret
ja LBB3

# jump table dispatch, jumping to label indexed by val in %ecx
## jump table dispatch, jumping to label indexed by val in %ecx
LBB1:
leaq JUMP_TABLE1(%rip), %r8
movzbl %cl, %ecx
Expand All @@ -39,21 +39,21 @@ LBB3:
ret
.size main, .-main

# cold fragment is only reachable
## cold fragment is only reachable
.globl main.cold.1
.type main.cold.1, %function
.p2align 2
main.cold.1:
# load bearing nop: pad LBB8 so that it can't be treated
# as __builtin_unreachable by analyzeJumpTable
## load bearing nop: pad LBB8 so that it can't be treated
## as __builtin_unreachable by analyzeJumpTable
nop
LBB4:
andl $0xb, %ebx
cmpb $0x1, %cl
# exit through ret
ja LBB7

# jump table dispatch, jumping to label indexed by val in %ecx
## jump table dispatch, jumping to label indexed by val in %ecx
LBB5:
leaq JUMP_TABLE1(%rip), %r8
movzbl %cl, %ecx
Expand All @@ -71,7 +71,7 @@ LBB8:
.size main.cold.1, .-main.cold.1

.rodata
# jmp table, entries must be R_X86_64_PC32 relocs
## jmp table, entries must be R_X86_64_PC32 relocs
.globl JUMP_TABLE1
JUMP_TABLE1:
.long LBB2-JUMP_TABLE1
Expand Down
18 changes: 9 additions & 9 deletions bolt/test/X86/split-func-jump-table-fragment-noparent.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This reproduces a bug with jump table identification where jump table has
# entries pointing to code in function and its cold fragment.
# The fragment is only reachable through jump table.
## This reproduces a bug with jump table identification where jump table has
## entries pointing to code in function and its cold fragment.
## The fragment is only reachable through jump table.

# REQUIRES: system-linux

Expand All @@ -19,10 +19,10 @@ main:
LBB0:
andl $0xf, %ecx
cmpb $0x4, %cl
# exit through ret
## exit through ret
ja LBB3

# jump table dispatch, jumping to label indexed by val in %ecx
## jump table dispatch, jumping to label indexed by val in %ecx
LBB1:
leaq JUMP_TABLE(%rip), %r8
movzbl %cl, %ecx
Expand All @@ -37,20 +37,20 @@ LBB3:
ret
.size main, .-main

# cold fragment is only reachable through jump table
## cold fragment is only reachable through jump table
.globl main.cold.1
.type main.cold.1, %function
.p2align 2
main.cold.1:
# load bearing nop: pad LBB4 so that it can't be treated
# as __builtin_unreachable by analyzeJumpTable
## load bearing nop: pad LBB4 so that it can't be treated
## as __builtin_unreachable by analyzeJumpTable
nop
LBB4:
callq abort
.size main.cold.1, .-main.cold.1

.rodata
# jmp table, entries must be R_X86_64_PC32 relocs
## jmp table, entries must be R_X86_64_PC32 relocs
.globl JUMP_TABLE
JUMP_TABLE:
.long LBB2-JUMP_TABLE
Expand Down
18 changes: 9 additions & 9 deletions bolt/test/X86/split-func-jump-table-fragment-reverse.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This reproduces a bug with jump table identification where jump table has
# entries pointing to code in function and its cold fragment.
# The fragment is only reachable through jump table.
## This reproduces a bug with jump table identification where jump table has
## entries pointing to code in function and its cold fragment.
## The fragment is only reachable through jump table.

# REQUIRES: system-linux

Expand All @@ -26,10 +26,10 @@ main.cold:
LBB0:
andl $0xf, %ecx
cmpb $0x4, %cl
# exit through ret
## exit through ret
ja LBB3

# jump table dispatch, jumping to label indexed by val in %ecx
## jump table dispatch, jumping to label indexed by val in %ecx
LBB1:
leaq JUMP_TABLE(%rip), %r8
movzbl %cl, %ecx
Expand All @@ -44,20 +44,20 @@ LBB3:
ret
.size main.cold, .-main.cold

# main function, referenced from jump table in cold fragment
## main function, referenced from jump table in cold fragment
.globl main
.type main, %function
.p2align 2
main:
# load bearing nop: pad LBB4 so that it can't be treated
# as __builtin_unreachable by analyzeJumpTable
## load bearing nop: pad LBB4 so that it can't be treated
## as __builtin_unreachable by analyzeJumpTable
nop
LBB4:
callq abort
.size main, .-main

.rodata
# jmp table, entries must be R_X86_64_PC32 relocs
## jmp table, entries must be R_X86_64_PC32 relocs
.globl JUMP_TABLE
JUMP_TABLE:
.long LBB2-JUMP_TABLE
Expand Down
10 changes: 5 additions & 5 deletions bolt/test/X86/split-func-jump-table-fragment.s
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ main:
LBB0:
andl $0xf, %ecx
cmpb $0x4, %cl
# exit through abort in main.cold.1, registers cold fragment the regular way
## exit through abort in main.cold.1, registers cold fragment the regular way
ja main.cold.1

# jump table dispatch, jumping to label indexed by val in %ecx
## jump table dispatch, jumping to label indexed by val in %ecx
LBB1:
leaq JUMP_TABLE(%rip), %r8
movzbl %cl, %ecx
Expand All @@ -37,8 +37,8 @@ LBB3:
ret
.size main, .-main

# Insert padding between functions, so that the next instruction cannot be
# treated as __builtin_unreachable destination for the jump table.
## Insert padding between functions, so that the next instruction cannot be
## treated as __builtin_unreachable destination for the jump table.
.quad 0

.globl main.cold.1
Expand All @@ -50,7 +50,7 @@ LBB4:
.size main.cold.1, .-main.cold.1

.rodata
# jmp table, entries must be R_X86_64_PC32 relocs
## jmp table, entries must be R_X86_64_PC32 relocs
.globl JUMP_TABLE
JUMP_TABLE:
.long LBB2-JUMP_TABLE
Expand Down
14 changes: 7 additions & 7 deletions bolt/test/X86/split-func-jump-table-unknown.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This reproduces a bug with converting an unknown control flow jump table with
# entries pointing to code in function and its cold fragment.
## This reproduces a bug with converting an unknown control flow jump table with
## entries pointing to code in function and its cold fragment.

# REQUIRES: system-linux

Expand Down Expand Up @@ -27,10 +27,10 @@ LBB0:
leaq JUMP_TABLE(%rip), %r8
andl $0xf, %ecx
cmpb $0x4, %cl
# exit through abort in main.cold.1, registers cold fragment the regular way
## exit through abort in main.cold.1, registers cold fragment the regular way
ja main.cold.1

# jump table dispatch, jumping to label indexed by val in %ecx
## jump table dispatch, jumping to label indexed by val in %ecx
LBB1:
movzbl %cl, %ecx
movslq (%r8,%rcx,4), %rax
Expand All @@ -48,15 +48,15 @@ LBB3:
.type main.cold.1, %function
.p2align 2
main.cold.1:
# load bearing nop: pad LBB4 so that it can't be treated
# as __builtin_unreachable by analyzeJumpTable
## load bearing nop: pad LBB4 so that it can't be treated
## as __builtin_unreachable by analyzeJumpTable
nop
LBB4:
callq abort
.size main.cold.1, .-main.cold.1

.rodata
# jmp table, entries must be R_X86_64_PC32 relocs
## jmp table, entries must be R_X86_64_PC32 relocs
.globl JUMP_TABLE
JUMP_TABLE:
.long LBB2-JUMP_TABLE
Expand Down
44 changes: 22 additions & 22 deletions bolt/test/X86/split-landing-pad.s
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# This test reproduces the case where C++ exception handling is used and split
# function optimization is enabled. In particular, function foo is splitted
# to two fragments:
# foo: contains 2 try blocks, which invokes bar to throw exception
# foo.cold.1: contains 2 corresponding catch blocks (landing pad)
#
# Similar to split jump table, split landing pad target to different fragment.
# This test is written to ensure BOLT safely handle these targets, e.g., by
# marking them as non-simple.
#
# Steps to write this test:
# - Create a copy of Inputs/src/unreachable.cpp
# - Simplify bar(), focus on throw an exception
# - Create the second switch case in foo() to have multiple landing pads
# - Compile with clang++ to .s
# - Move landing pad code from foo to foo.cold.1
# - Ensure that all landing pads can be reached normally
#
# Additional details:
# .gcc_except_table specify the landing pads for try blocks
# LPStart = 255 (omit), which means LPStart = foo start
# Landing pads .Ltmp2 and .Ltmp5 in call site record are offset to foo start.
## This test reproduces the case where C++ exception handling is used and split
## function optimization is enabled. In particular, function foo is splitted
## to two fragments:
## foo: contains 2 try blocks, which invokes bar to throw exception
## foo.cold.1: contains 2 corresponding catch blocks (landing pad)
##
## Similar to split jump table, split landing pad target to different fragment.
## This test is written to ensure BOLT safely handle these targets, e.g., by
## marking them as non-simple.
##
## Steps to write this test:
## - Create a copy of Inputs/src/unreachable.cpp
## - Simplify bar(), focus on throw an exception
## - Create the second switch case in foo() to have multiple landing pads
## - Compile with clang++ to .s
## - Move landing pad code from foo to foo.cold.1
## - Ensure that all landing pads can be reached normally
##
## Additional details:
## .gcc_except_table specify the landing pads for try blocks
## LPStart = 255 (omit), which means LPStart = foo start
## Landing pads .Ltmp2 and .Ltmp5 in call site record are offset to foo start.


# REQUIRES: system-linux
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/split-random.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test random function splitting option
## Test random function splitting option

# RUN: llvm-mc --filetype=obj --triple x86_64-unknown-unknown %s -o %t.o
# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/static-exe.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Check that llvm-bolt can rewrite static executable
## Check that llvm-bolt can rewrite static executable

RUN: %clang %cflags %S/Inputs/static_exe.s -static -o %t.exe -nostdlib
RUN: llvm-bolt %t.exe -o %t 2>&1 | FileCheck %s
Expand Down
4 changes: 2 additions & 2 deletions bolt/test/X86/symtab-secondary-entries.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Check that secondary entry points are updated correctly in the ELF symtab
## Check that secondary entry points are updated correctly in the ELF symtab

RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
RUN: %p/Inputs/user-order.S -o %t.o
Expand All @@ -13,7 +13,7 @@ CHECK: [[#]] FUNC GLOBAL DEFAULT [[#NDX]] main
CHECK: [[#]] FUNC LOCAL DEFAULT [[#NDX]] _a
CHECK: [[#]] FUNC GLOBAL DEFAULT [[#NDX]] _b
CHECK: [[#]] FUNC GLOBAL DEFAULT [[#NDX]] _f
# The following are all secondary entries of _f
## The following are all secondary entries of _f
CHECK: 0 FUNC GLOBAL DEFAULT [[#NDX]] _c
CHECK: 0 FUNC GLOBAL DEFAULT [[#NDX]] _d
CHECK: 0 FUNC GLOBAL DEFAULT [[#NDX]] _e
4 changes: 2 additions & 2 deletions bolt/test/X86/tail-duplication-cache.s
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# RUN: --print-finalized --tail-duplication=cache -o %t.out2 \
# RUN: | FileCheck --check-prefix="CHECK2" %s

# A test where the tail is duplicated to eliminate an unconditional jump
## A test where the tail is duplicated to eliminate an unconditional jump
# FDATA: 1 main #.BB0_br# 1 main #.BB4# 0 100
# FDATA: 1 main #.BB0_br# 1 main #.BB1# 0 100
# FDATA: 1 main #.BB1_br# 1 main #.BB3# 0 50
Expand All @@ -20,7 +20,7 @@
# CHECK: BOLT-INFO: tail duplication modified 1 ({{.*}}%) functions; duplicated 1 blocks (13 bytes) responsible for 50 dynamic executions ({{.*}}% of all block executions)
# CHECK: BB Layout : .LBB00, .Ltmp0, .Ltmp1, .Ltmp2, .Ltmp3, .Ltmp4, .Ltmp5, .Ltail-dup0, .Ltmp6

# A test where the tail is not duplicated due to the cache score
## A test where the tail is not duplicated due to the cache score
# FDATA2: 1 main #.BB0_br# 1 main #.BB4# 0 100
# FDATA2: 1 main #.BB0_br# 1 main #.BB1# 0 2
# FDATA2: 1 main #.BB1_br# 1 main #.BB3# 0 1
Expand Down
4 changes: 2 additions & 2 deletions bolt/test/X86/tail-duplication-cacheline.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This reproduces a bug in TailDuplication::isInCacheLine
# with accessing BlockLayout past bounds (unreachable blocks).
## This reproduces a bug in TailDuplication::isInCacheLine
## with accessing BlockLayout past bounds (unreachable blocks).

# REQUIRES: system-linux

Expand Down
12 changes: 6 additions & 6 deletions bolt/test/X86/tail-duplication-complex.s
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
# CHECK: tail duplication modified 1 ({{.*}}%) functions; duplicated 1 blocks ({{.*}} bytes) responsible for {{.*}} dynamic executions ({{.*}} of all block executions)
# CHECK: BB Layout : .LBB00, .Ltmp0, .Ltail-dup0, .Ltmp1, .Ltmp2

# This is the C++ code fed to Clang
# int fib(int term) {
# if (term <= 1)
# return term;
# return fib(term-1) + fib(term-2);
# }
## This is the C++ code fed to Clang
## int fib(int term) {
## if (term <= 1)
## return term;
## return fib(term-1) + fib(term-2);
## }

.text
.globl main
Expand Down
4 changes: 2 additions & 2 deletions bolt/test/X86/tail-duplication-jt.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This reproduces a bug in tail duplication when aggressiveCodeToDuplicate
# fails to handle a block with a jump table.
## This reproduces a bug in tail duplication when aggressiveCodeToDuplicate
## fails to handle a block with a jump table.

# REQUIRES: system-linux

Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/tail-duplication-pass.s
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# CHECK: BOLT-INFO: tail duplication modified 1 ({{.*}}%) functions; duplicated 1 blocks (1 bytes) responsible for {{.*}} dynamic executions ({{.*}}% of all block executions)
# CHECK: BB Layout : .LBB00, .Ltail-dup0, .Ltmp0, .Ltmp1

# Check that the successor of Ltail-dup0 is .LBB00, not itself.
## Check that the successor of Ltail-dup0 is .LBB00, not itself.
# CHECK-NOLOOP: .Ltail-dup0 (1 instructions, align : 1)
# CHECK-NOLOOP: Predecessors: .LBB00
# CHECK-NOLOOP: retq
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/tail-duplication-prop-bug.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This reproduces a bug in aggressive tail duplication/copy propagation.
## This reproduces a bug in aggressive tail duplication/copy propagation.

# REQUIRES: system-linux
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/tailcall-traps.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Tests the peephole that adds trap instructions following indirect tail calls.
## Tests the peephole that adds trap instructions following indirect tail calls.

RUN: %clang %cflags %p/Inputs/tailcall_traps.s -o %t.exe
RUN: llvm-bolt %t.exe -o %t --peepholes=tailcall-traps \
Expand Down
4 changes: 2 additions & 2 deletions bolt/test/X86/tailcall.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Verifies that llvm-bolt recognizes tailcalls and mark them
# in control flow graph.
## Verifies that llvm-bolt recognizes tailcalls and mark them
## in control flow graph.

RUN: %clang %cflags %S/Inputs/tailcall.s -o %t.exe
RUN: llvm-bolt %t.exe -o %t.null --print-cfg 2>&1 | FileCheck %s
Expand Down
4 changes: 2 additions & 2 deletions bolt/test/X86/unclaimed-jt-entries.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This test ensures that "unclaimed" jump table entries are accounted later
# in postProcessIndirectBranches and the function is marked as non-simple.
## This test ensures that "unclaimed" jump table entries are accounted later
## in postProcessIndirectBranches and the function is marked as non-simple.

# The test is compiled from the following source using GCC 12.2 -O3:
# https://godbolt.org/z/YcPG131s6
Expand Down
10 changes: 5 additions & 5 deletions bolt/test/X86/unreachable-jmp.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This checks that we don't create an invalid CFG when there is an
# unreachable direct jump right after an indirect one.
## This checks that we don't create an invalid CFG when there is an
## unreachable direct jump right after an indirect one.

# REQUIRES: system-linux

Expand All @@ -25,8 +25,8 @@ _start:
b:
jmpq *JUMP_TABLE(,%rcx,8)
# FDATA: 1 _start #b# 1 _start #hotpath# 0 20
# Unreachable direct jump here. Our CFG should still make sense and properly
# place this instruction in a new basic block.
## Unreachable direct jump here. Our CFG should still make sense and properly
## place this instruction in a new basic block.
jmp .lbb2
.lbb1: je .lexit
.lbb2:
Expand Down Expand Up @@ -60,7 +60,7 @@ JUMP_TABLE:
.quad .lbb2
.quad hotpath

# No basic blocks above should have 4 successors! That is a bug.
## No basic blocks above should have 4 successors! That is a bug.
# CHECK-NOT: Successors: {{.*}} (mispreds: 0, count: 20), {{.*}} (mispreds: 0, count: 0), {{.*}} (mispreds: 0, count: 0), {{.*}} (mispreds: 0, count: 0)
# Check successful removal of stray direct jmp
# CHECK: UCE removed 1 block
2 changes: 1 addition & 1 deletion bolt/test/X86/unreachable.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Check unreachable code elimination
## Check unreachable code elimination

RUN: %clang %cflags %p/../Inputs/stub.c -fPIC -pie -shared -o %t.so
RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
Expand Down
6 changes: 3 additions & 3 deletions bolt/test/X86/vararg.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Check that a function that references a label inside itself,
# as in the case of vararg handling code generated by GCC 4.5
# and earlier, is recognized as multi-entry.
## Check that a function that references a label inside itself,
## as in the case of vararg handling code generated by GCC 4.5
## and earlier, is recognized as multi-entry.

REQUIRES: x86_64-linux

Expand Down
4 changes: 2 additions & 2 deletions bolt/test/X86/yaml-multiple-profiles.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This test ensures that a YAML profile with multiple profiles matching the same
# function is handled gracefully.
## This test ensures that a YAML profile with multiple profiles matching the same
## function is handled gracefully.

# REQUIRES: system-linux
# RUN: split-file %s %t
Expand Down
4 changes: 2 additions & 2 deletions bolt/test/X86/zero-sized-object.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check that references to local (unnamed) objects below are not
# treated as references relative to zero-sized A object.
## Check that references to local (unnamed) objects below are not
## treated as references relative to zero-sized A object.

# REQUIRES: system-linux

Expand Down
8 changes: 4 additions & 4 deletions bolt/test/bad-exe.test
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Check that llvm-bolt rejects input that is not a valid ELF executable
# bzip2.debuginfo is the result of running "objcopy --only-keep-debug".
## Check that llvm-bolt rejects input that is not a valid ELF executable
## bzip2.debuginfo is the result of running "objcopy --only-keep-debug".

# This test uses the clang driver without target flags and will only succeed
# on Linux systems where the host triple matches the target.
## This test uses the clang driver without target flags and will only succeed
## on Linux systems where the host triple matches the target.
REQUIRES: system-linux

RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -g -o %t
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/bolt-icf.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Check for the replacement of calls to identical functions.
## Check for the replacement of calls to identical functions.

REQUIRES: system-linux

Expand Down
6 changes: 3 additions & 3 deletions bolt/test/bolt-info.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Check that the .bolt_info section is generated properly.
## Check that the .bolt_info section is generated properly.

# This test uses the clang driver without target flags and will only succeed
# on Linux systems where the host triple matches the target.
## This test uses the clang driver without target flags and will only succeed
## on Linux systems where the host triple matches the target.
REQUIRES: system-linux

RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/heatmap.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Verifies basic functioning of heatmap mode
## Verifies basic functioning of heatmap mode

REQUIRES: system-linux

Expand Down
6 changes: 3 additions & 3 deletions bolt/test/invalid-profile.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Check that llvm-bolt detects bad profile data and aborts
## Check that llvm-bolt detects bad profile data and aborts

# This test uses the clang driver without target flags and will only succeed
# on Linux systems where the host triple matches the target.
## This test uses the clang driver without target flags and will only succeed
## on Linux systems where the host triple matches the target.
REQUIRES: system-linux

RUN: %clang %S/Inputs/icf-jump-tables.c -o %t
Expand Down
4 changes: 2 additions & 2 deletions bolt/test/keep-aranges.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check that BOLT generates .debug_aranges section for an input
# where it was removed when .gdb_index was generated.
## Check that BOLT generates .debug_aranges section for an input
## where it was removed when .gdb_index was generated.

REQUIRES: system-linux

Expand Down
6 changes: 3 additions & 3 deletions bolt/test/no-relocs.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Verifies that input without relocations is rejected in relocs mode.
## Verifies that input without relocations is rejected in relocs mode.

# This test uses the clang driver without target flags and will only succeed
# on Linux systems where the host triple matches the target.
## This test uses the clang driver without target flags and will only succeed
## on Linux systems where the host triple matches the target.
REQUIRES: system-linux

RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t
Expand Down
8 changes: 4 additions & 4 deletions bolt/test/non-empty-debug-line.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Verifies that BOLT emits DWARF line table with the same size if
# no functions with debug info were modified.
## Verifies that BOLT emits DWARF line table with the same size if
## no functions with debug info were modified.

REQUIRES: system-linux

Expand All @@ -9,12 +9,12 @@ RUN: llvm-readobj -S %t > %t2
RUN: llvm-readobj -S %t1 >> %t2
RUN: FileCheck %s --input-file %t2

# Check the input and grab .debug_line size.
## Check the input and grab .debug_line size.
CHECK: File:
CHECK: Name: .debug_line
CHECK: Size: [[SIZE:[0-9]+]]

# Verify .debug_line size is the same after BOLT.
## Verify .debug_line size is the same after BOLT.
CHECK: File:
CHECK: Name: .debug_line
CHECK: Size:
Expand Down
6 changes: 3 additions & 3 deletions bolt/test/pie.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Check that we do not reject position-independent executables (PIEs).
## Check that we do not reject position-independent executables (PIEs).

# This test uses the clang driver without target flags and will only succeed
# on Linux systems where the host triple matches the target.
## This test uses the clang driver without target flags and will only succeed
## on Linux systems where the host triple matches the target.
REQUIRES: system-linux

RUN: %clang %cflags -fPIC -pie %p/Inputs/jump_table_icp.cpp -o %t
Expand Down
6 changes: 3 additions & 3 deletions bolt/test/re-optimize.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Check that we detect re-optimization attempt.
## Check that we detect re-optimization attempt.

# This test uses the clang driver without target flags and will only succeed
# on Linux systems where the host triple matches the target.
## This test uses the clang driver without target flags and will only succeed
## on Linux systems where the host triple matches the target.
REQUIRES: system-linux

RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t.exe
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/runtime/X86/asm-dump.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Test for asm-dump functionality.
** Test for asm-dump functionality.
*
* REQUIRES: x86_64-linux,bolt-runtime
*
Expand Down
6 changes: 3 additions & 3 deletions bolt/test/shared-object.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Test that llvm-bolt processes *.so without a failure
## Test that llvm-bolt processes *.so without a failure

# This test uses the clang driver without target flags and will only succeed
# on Linux systems where the host triple matches the target.
## This test uses the clang driver without target flags and will only succeed
## on Linux systems where the host triple matches the target.
REQUIRES: system-linux

RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t.so -shared -fPIC -Wl,--build-id
Expand Down