diff options
author | Amir Ayupov <amir.aupov@gmail.com> | 2022-05-03 22:45:15 +0300 |
---|---|---|
committer | Amir Ayupov <amir.aupov@gmail.com> | 2022-05-03 22:45:15 +0300 |
commit | 39492ba5d69ebaba9d1e65ad57cdda0f60796cf8 (patch) | |
tree | 9c2d468eecb0d2bc9f70dae61d6c2d5d742a4791 | |
parent | 88b6d3211c836021a9b570ac6090dd1bf42da449 (diff) |
Revert "[BOLT][TEST] Fix test failures on AArch64 builder"
This reverts commit 88b6d3211c836021a9b570ac6090dd1bf42da449.
-rw-r--r-- | bolt/test/Inputs/icf-jump-tables.c | 2 | ||||
-rw-r--r-- | bolt/test/X86/Inputs/avx512.c | 7 | ||||
-rw-r--r-- | bolt/test/X86/Inputs/inline-foo.c | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/bolt/test/Inputs/icf-jump-tables.c b/bolt/test/Inputs/icf-jump-tables.c index b5810afb7042..dc2321eadfdc 100644 --- a/bolt/test/Inputs/icf-jump-tables.c +++ b/bolt/test/Inputs/icf-jump-tables.c @@ -1,3 +1,5 @@ +#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 25f9502234bd..719037968423 100644 --- a/bolt/test/X86/Inputs/avx512.c +++ b/bolt/test/X86/Inputs/avx512.c @@ -1,9 +1,14 @@ +#include <stdio.h> + void use_avx512() { + printf("after first entry\n"); asm (".byte 0x62, 0xe2, 0xf5, 0x70, 0x2c, 0xda"); - asm("secondary_entry:"); + asm ("secondary_entry:"); + printf("after secondary entry\n"); } 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 89fa82f832d6..12c737a67b89 100644 --- a/bolt/test/X86/Inputs/inline-foo.c +++ b/bolt/test/X86/Inputs/inline-foo.c @@ -1,4 +1,4 @@ -// don't include stdio as the test is linked with -nostdlib +#include <stdio.h> void foo() { puts("Hello world!\n"); |