[llvm] [BOLT] Enable hugify for AArch64 (PR #117158)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 23 07:57:33 PST 2024
================
@@ -0,0 +1,34 @@
+// Make sure BOLT correctly processes --hugify option
+
+#include <stdio.h>
+
+int g1 = 1;
+int g2;
+static int sg1 = 1;
+static int sg2;
+
+
+int main(int argc, char **argv) {
+ printf("Hello world %p = %d , %p = %d\n", &g1, g1, &sg1, sg1);
+ printf("%p = %d , %p = %d\n", &g2, g2, &sg2, sg2);
+ return 0;
+}
+
+/*
+REQUIRES: system-linux,bolt-runtime
+
+RUN: %clang %cflags -no-pie %s -o %t.nopie.exe -Wl,-q
----------------
alekuz01 wrote:
@yavtuk
btw, did I address your comment below:
> we can move bolt/test/runtime/AArch64/hugify.c -> bolt/test/runtime/hugify.c and use the test for both platforms
And, you agree to avoid removing %cflags to keep substitutions by lit as it is? ( we maybe can handle duplicates in other tests just fixing configs if there are some worries about it.
https://github.com/llvm/llvm-project/pull/117158
More information about the llvm-commits
mailing list