[PATCH] D158899: [BOLT][test] Enable exceptions_split tests for AArch64
Elvina Yakubova via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 1 00:48:57 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG777e268b8168: [BOLT][test] Enable exceptions_split tests for AArch64 (authored by Elvina).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158899/new/
https://reviews.llvm.org/D158899
Files:
bolt/test/runtime/Inputs/exceptions_split.cpp
bolt/test/runtime/X86/Inputs/exceptions_split.cpp
bolt/test/runtime/X86/exceptions-instrumentation.test
bolt/test/runtime/X86/pie-exceptions-split.test
bolt/test/runtime/exceptions-instrumentation.test
bolt/test/runtime/pie-exceptions-split.test
Index: bolt/test/runtime/pie-exceptions-split.test
===================================================================
--- bolt/test/runtime/pie-exceptions-split.test
+++ bolt/test/runtime/pie-exceptions-split.test
@@ -16,9 +16,9 @@
## All calls to printf() should be from exception handling code that was
## recorded as cold during the profile collection run. Check that the calls
## are placed after the split point.
-CHECK-NOT: callq printf
+CHECK-NOT: printf
CHECK: HOT-COLD SPLIT POINT
-CHECK: callq printf
+CHECK: printf
## Verify the output still executes correctly when the exception path is being
## taken.
Index: bolt/test/runtime/Inputs/exceptions_split.cpp
===================================================================
--- bolt/test/runtime/Inputs/exceptions_split.cpp
+++ bolt/test/runtime/Inputs/exceptions_split.cpp
@@ -3,31 +3,25 @@
//
// Record performance data with no args. Run test with 2 args.
-#include <stdio.h>
#include <stdint.h>
+#include <stdio.h>
-int foo()
-{
- return 0;
-}
+int foo() { return 0; }
void bar(int a) {
if (a > 2 && a % 2)
throw new int();
}
-void filter_only(){
- foo();
-}
+void filter_only() { foo(); }
-int main(int argc, char **argv)
-{
+int main(int argc, char **argv) {
unsigned r = 0;
uint64_t limit = (argc >= 2 ? 10 : 5000);
for (uint64_t i = 0; i < limit; ++i) {
i += foo();
- try {
+ try {
bar(argc);
try {
if (argc >= 2)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158899.555291.patch
Type: text/x-patch
Size: 1471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230901/440c4fc6/attachment.bin>
More information about the llvm-commits
mailing list