Skip to content

Commit 777e268

Browse files
[BOLT][test] Enable exceptions_split tests for AArch64
Since the issue with trap value is fixed in D158191, it now should pass on both platforms. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D158899
1 parent 4d1cf54 commit 777e268

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

bolt/test/runtime/X86/Inputs/exceptions_split.cpp renamed to bolt/test/runtime/Inputs/exceptions_split.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,25 @@
33
//
44
// Record performance data with no args. Run test with 2 args.
55

6-
#include <stdio.h>
76
#include <stdint.h>
7+
#include <stdio.h>
88

9-
int foo()
10-
{
11-
return 0;
12-
}
9+
int foo() { return 0; }
1310

1411
void bar(int a) {
1512
if (a > 2 && a % 2)
1613
throw new int();
1714
}
1815

19-
void filter_only(){
20-
foo();
21-
}
16+
void filter_only() { foo(); }
2217

23-
int main(int argc, char **argv)
24-
{
18+
int main(int argc, char **argv) {
2519
unsigned r = 0;
2620

2721
uint64_t limit = (argc >= 2 ? 10 : 5000);
2822
for (uint64_t i = 0; i < limit; ++i) {
2923
i += foo();
30-
try {
24+
try {
3125
bar(argc);
3226
try {
3327
if (argc >= 2)

bolt/test/runtime/X86/pie-exceptions-split.test renamed to bolt/test/runtime/pie-exceptions-split.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ RUN: --print-only=main 2>&1 | FileCheck %s
1616
## All calls to printf() should be from exception handling code that was
1717
## recorded as cold during the profile collection run. Check that the calls
1818
## are placed after the split point.
19-
CHECK-NOT: callq printf
19+
CHECK-NOT: printf
2020
CHECK: HOT-COLD SPLIT POINT
21-
CHECK: callq printf
21+
CHECK: printf
2222

2323
## Verify the output still executes correctly when the exception path is being
2424
## taken.

0 commit comments

Comments
 (0)