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
diff options
context:
space:
mode:
-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, 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");