[PATCH] D124863: [BOLT][TEST] Fix test failures on AArch64 builder

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 14:59:23 PDT 2022


Amir updated this revision to Diff 426852.
Amir added a comment.

Fix build with upstream clang


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124863/new/

https://reviews.llvm.org/D124863

Files:
  bolt/test/Inputs/icf-jump-tables.c
  bolt/test/X86/Inputs/avx512.c
  bolt/test/X86/Inputs/inline-foo.c


Index: bolt/test/X86/Inputs/inline-foo.c
===================================================================
--- bolt/test/X86/Inputs/inline-foo.c
+++ bolt/test/X86/Inputs/inline-foo.c
@@ -1,4 +1,4 @@
-#include <stdio.h>
+extern void puts(char *);
 
 void foo() {
   puts("Hello world!\n");
Index: bolt/test/X86/Inputs/avx512.c
===================================================================
--- bolt/test/X86/Inputs/avx512.c
+++ 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;
Index: bolt/test/Inputs/icf-jump-tables.c
===================================================================
--- bolt/test/Inputs/icf-jump-tables.c
+++ bolt/test/Inputs/icf-jump-tables.c
@@ -1,4 +1,4 @@
-#include <stdio.h>
+extern void puts(char *);
 
 int inc(int x) {
   switch (x) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124863.426852.patch
Type: text/x-patch
Size: 1096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/3538ed94/attachment.bin>


More information about the llvm-commits mailing list