aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2021-09-20 17:41:19 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2021-09-20 17:41:19 +0200
commitbbf2499f60854a74ea8c6db3e63515314d5a9544 (patch)
tree1d116b992d90106eb903dcafe5c4e946b55ba4b3 /test
parent3a6a2f239aa00fc568d7206909e1ffd9eef1f31c (diff)
parent0caf9e5fe1e17aced122143780355a81478c2190 (diff)
downloadcompcert-kvx-bbf2499f60854a74ea8c6db3e63515314d5a9544.tar.gz
compcert-kvx-bbf2499f60854a74ea8c6db3e63515314d5a9544.zip
Merge branch 'csmith' of gricad-gitlab.univ-grenoble-alpes.fr:sixcy/CompCert into csmith
Z
Diffstat (limited to 'test')
-rw-r--r--test/gourdinl/builtin_memcpy.c9
-rw-r--r--test/monniaux/csmith/Makefile10
2 files changed, 15 insertions, 4 deletions
diff --git a/test/gourdinl/builtin_memcpy.c b/test/gourdinl/builtin_memcpy.c
new file mode 100644
index 00000000..421f543c
--- /dev/null
+++ b/test/gourdinl/builtin_memcpy.c
@@ -0,0 +1,9 @@
+struct a b;
+struct a {
+ short;
+ int;
+ short;
+} c() {
+ struct a d[2][16];
+ b = d[1][7];
+}
diff --git a/test/monniaux/csmith/Makefile b/test/monniaux/csmith/Makefile
index f4b0d68a..1f32dccb 100644
--- a/test/monniaux/csmith/Makefile
+++ b/test/monniaux/csmith/Makefile
@@ -6,7 +6,7 @@ INCLUDES=-I csmith/include/csmith-2.3.0/
TARGET_CCOMP=../../../ccomp
ifndef TARGET_CC
-TARGET_CC=kvx-cos-gcc
+TARGET_CC=gcc
endif
ifndef EXECUTE
@@ -20,7 +20,7 @@ CSMITH=csmith/bin/csmith
endif
CSMITHOPT=--max-funcs 10
-MAX=10000
+MAX=500
PREFIX=ran%06.f
CCOMPOTS=-static
@@ -90,7 +90,9 @@ ran%/example.host_target.cmp : ran%/example.gcc.host.out ran%/example.ccomp.targ
clean:
-rm -rf ran*
-csmith/bin/csmith:
- curl -L -o csmith-2.3.0.tar.gz https://embed.cs.utah.edu/csmith/csmith-2.3.0.tar.gz
+csmith-2.3.0.tar.gz:
+ curl -L -O $@ https://embed.cs.utah.edu/csmith/csmith-2.3.0.tar.gz
+
+csmith/bin/csmith: csmith-2.3.0.tar.gz
tar xfz csmith-2.3.0.tar.gz
WD=`pwd` && cd csmith-2.3.0 && ./configure --prefix=$$WD/csmith && make install