forked from OSchip/llvm-project
[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
This commit is contained in:
parent
afaa56df7a
commit
1d5263c554
|
@ -1,4 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include "stub.h"
|
||||
|
||||
int inc(int x) {
|
||||
switch (x) {
|
||||
|
|
|
@ -4,6 +4,7 @@ void *memcpy(void *dest, const void *src, unsigned long n) { return 0; }
|
|||
void *memset(void *dest, int c, unsigned long n) { return 0; }
|
||||
int printf(const char *format, ...) { return 0; }
|
||||
void exit(int status) {}
|
||||
int puts(const char *s) { return 0; }
|
||||
|
||||
void *__gxx_personality_v0;
|
||||
void *__cxa_allocate_exception;
|
||||
|
|
|
@ -5,5 +5,6 @@ void *memcpy(void *dest, const void *src, unsigned long n);
|
|||
void *memset(void *dest, int c, unsigned long n);
|
||||
int printf(const char *format, ...);
|
||||
void exit(int status);
|
||||
int puts(const char *s);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include "stub.h"
|
||||
|
||||
void foo() {
|
||||
puts("Hello world!\n");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# REQUIRES: system-linux
|
||||
|
||||
# RUN: %clang %cflags -O1 -g %p/Inputs/inline-main.c %p/Inputs/inline-foo.c \
|
||||
# RUN: -o %t.exe -Wl,-q
|
||||
# RUN: -I%p/../Inputs -o %t.exe -Wl,-q
|
||||
# RUN: llvm-bolt %t.exe -update-debug-sections -print-debug-info \
|
||||
# RUN: -print-only=main -print-after-lowering -force-inline=foo -o %t.bolt \
|
||||
# RUN: | FileCheck %s
|
||||
|
|
Loading…
Reference in New Issue