aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/scheduling/mal_schedule.c
diff options
context:
space:
mode:
authorSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-10-21 09:15:40 +0200
committerSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-10-21 09:15:40 +0200
commit0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4 (patch)
treeb0799e5d8e4ae62a9ae47c5358a62630c7a4efc3 /test/monniaux/scheduling/mal_schedule.c
parent647471e5b084703d1c817c02ef4298c474d3d571 (diff)
parent3f99a42035389b1953030af8490a5ec18a64394f (diff)
downloadcompcert-kvx-0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4.tar.gz
compcert-kvx-0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4.zip
Merge branch 'kvx-work' into aarch64_block_bodystar
Diffstat (limited to 'test/monniaux/scheduling/mal_schedule.c')
-rw-r--r--test/monniaux/scheduling/mal_schedule.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/monniaux/scheduling/mal_schedule.c b/test/monniaux/scheduling/mal_schedule.c
new file mode 100644
index 00000000..a6ba967f
--- /dev/null
+++ b/test/monniaux/scheduling/mal_schedule.c
@@ -0,0 +1,14 @@
+#include <stdint.h>
+int16_t meuh;
+extern int uv_encode(double, double, int);
+void f(int *ab, int e) {
+ uint32_t *ao = (uint32_t *)ab;
+ int16_t *aq = &meuh;
+ while (e) {
+ int ar, as;
+ ar = 1. / 2147483647;
+ as = uv_encode(5, *aq, *ab);
+ if (as)
+ *ao++ = ar;
+ }
+}