Skip to content

Commit fa4ded3

Browse files
Converted test to assembly for '%cflags' compatibility.
The '-static' option does not work well with '-nostartfiles -nostdlib' that comes with '%cflags', but the latter is needed for better buildbot compatibility. I converted the test to assembly and dropped the previous c test. Dropped dummy-return.test and main.c Input file.
1 parent 8351110 commit fa4ded3

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

bolt/test/AArch64/dummy-return.s

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o
44
# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -static
5-
# RUN: not --crash llvm-bolt -instrument -instrumentation-sleep-time=1 %t.exe \
5+
# RUN: llvm-bolt -instrument -instrumentation-sleep-time=1 %t.exe \
66
# RUN: -o %t.instr 2>&1 | FileCheck %s
7+
# RUN: llvm-objdump --disassemble-symbols=__bolt_fini_trampoline %t.instr -D \
8+
# RUN: | FileCheck %s -check-prefix=CHECK-ASM
79

8-
# CHECK: not implemented
10+
# CHECK: BOLT-INFO: output linked against instrumentation runtime library
11+
# CHECK-ASM: <__bolt_fini_trampoline>:
12+
# CHECK-ASM-NEXT: ret
913

1014
.text
1115
.align 4

bolt/test/AArch64/dummy-return.test

Lines changed: 0 additions & 13 deletions
This file was deleted.

bolt/test/Inputs/main.c

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)