[llvm] [BOLT][test] Fix patch-entries for aarch64 buildbot (PR #65690)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 15:47:57 PDT 2023


https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/65690:

None

>From f754b0b34788e771ae5f2b4e96c8d5d8a1916bdd Mon Sep 17 00:00:00 2001
From: Amir Ayupov <aaupov at fb.com>
Date: Thu, 7 Sep 2023 15:13:47 -0700
Subject: [PATCH] [BOLT][test] Fix patch-entries for aarch64 buildbot

---
 bolt/test/X86/Inputs/patch-entries.c |  8 ++++++++
 bolt/test/X86/patch-entries.c        | 19 -------------------
 bolt/test/X86/patch-entries.test     | 10 ++++++++++
 3 files changed, 18 insertions(+), 19 deletions(-)
 create mode 100644 bolt/test/X86/Inputs/patch-entries.c
 delete mode 100644 bolt/test/X86/patch-entries.c
 create mode 100644 bolt/test/X86/patch-entries.test

diff --git a/bolt/test/X86/Inputs/patch-entries.c b/bolt/test/X86/Inputs/patch-entries.c
new file mode 100644
index 000000000000000..46a3b41b048e466
--- /dev/null
+++ b/bolt/test/X86/Inputs/patch-entries.c
@@ -0,0 +1,8 @@
+#include "stub.h"
+
+static void foo() { printf("foo\n"); }
+
+int main() {
+  foo();
+  return 0;
+}
diff --git a/bolt/test/X86/patch-entries.c b/bolt/test/X86/patch-entries.c
deleted file mode 100644
index d435781fc60f075..000000000000000
--- a/bolt/test/X86/patch-entries.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// Checking crashes against injected binary functions created by patch
-// entries pass and debug info turned on. In these cases, we were
-// trying to fetch input to output maps on injected functions and
-// crashing.
-
-// REQUIRES: system-linux
-
-// RUN: %clang %cflags -no-pie -g %s -fuse-ld=lld -o %t.exe -Wl,-q
-// RUN: llvm-bolt -relocs %t.exe -o %t.out --update-debug-sections \
-// RUN:   --force-patch
-
-#include <stdio.h>
-
-static void foo() { printf("foo\n"); }
-
-int main() {
-  foo();
-  return 0;
-}
diff --git a/bolt/test/X86/patch-entries.test b/bolt/test/X86/patch-entries.test
new file mode 100644
index 000000000000000..ecc36fa5ec57b84
--- /dev/null
+++ b/bolt/test/X86/patch-entries.test
@@ -0,0 +1,10 @@
+# Checking crashes against injected binary functions created by patch
+# entries pass and debug info turned on. In these cases, we were
+# trying to fetch input to output maps on injected functions and
+# crashing.
+
+REQUIRES: system-linux
+
+RUN: %clang %cflags -no-pie -g %p/Inputs/patch-entries.c -fuse-ld=lld -o %t.exe \
+RUN:   -Wl,-q
+RUN: llvm-bolt -relocs %t.exe -o %t.out --update-debug-sections --force-patch



More information about the llvm-commits mailing list