Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bolt
diff options
context:
space:
mode:
authorAmir Ayupov <amir.aupov@gmail.com>2022-05-03 20:18:17 +0300
committerAmir Ayupov <amir.aupov@gmail.com>2022-05-03 22:42:30 +0300
commit88b6d3211c836021a9b570ac6090dd1bf42da449 (patch)
tree3cadf13e1d728ee8d9264b0c9aa603ca246fa1f7 /bolt
parentc1e17c7dfedd27b95c8c2fba2b6473c7348f0e77 (diff)
[BOLT][TEST] Fix test failures on AArch64 builder
Address X86 tests failures on AArch64 builder: https://lab.llvm.org/staging/#/builders/211/builds/82 Inputs fail to cross-compile due to a missing header: ``` /usr/include/stdio.h:27:10: fatal error: 'bits/libc-header-start.h' file not found #include <bits/libc-header-start.h> ``` As inputs are linked with `-nostdlib` anyway, don't include stdio.h. Reviewed By: yota9 Differential Revision: https://reviews.llvm.org/D124863
Diffstat (limited to 'bolt')
-rw-r--r--bolt/test/Inputs/icf-jump-tables.c2
-rw-r--r--bolt/test/X86/Inputs/avx512.c7
-rw-r--r--bolt/test/X86/Inputs/inline-foo.c2
3 files changed, 2 insertions, 9 deletions
diff --git a/bolt/test/Inputs/icf-jump-tables.c b/bolt/test/Inputs/icf-jump-tables.c
index dc2321eadfdc..b5810afb7042 100644
--- a/bolt/test/Inputs/icf-jump-tables.c
+++ b/bolt/test/Inputs/icf-jump-tables.c
@@ -1,5 +1,3 @@
-#include <stdio.h>
-
int inc(int x) {
switch (x) {
case 0: puts("0"); return 1;
diff --git a/bolt/test/X86/Inputs/avx512.c b/bolt/test/X86/Inputs/avx512.c
index 719037968423..25f9502234bd 100644
--- a/bolt/test/X86/Inputs/avx512.c
+++ b/bolt/test/X86/Inputs/avx512.c
@@ -1,14 +1,9 @@
-#include <stdio.h>
-
void use_avx512() {
- printf("after first entry\n");
asm (".byte 0x62, 0xe2, 0xf5, 0x70, 0x2c, 0xda");
- asm ("secondary_entry:");
- printf("after secondary entry\n");
+ asm("secondary_entry:");
}
int main() {
- printf("about to use avx-512 instruction...\n");
use_avx512();
return 0;
diff --git a/bolt/test/X86/Inputs/inline-foo.c b/bolt/test/X86/Inputs/inline-foo.c
index 12c737a67b89..89fa82f832d6 100644
--- a/bolt/test/X86/Inputs/inline-foo.c
+++ b/bolt/test/X86/Inputs/inline-foo.c
@@ -1,4 +1,4 @@
-#include <stdio.h>
+// don't include stdio as the test is linked with -nostdlib
void foo() {
puts("Hello world!\n");