diff options
author | David Monniaux <David.Monniaux@univ-grenoble-alpes.fr> | 2021-09-20 20:38:59 +0200 |
---|---|---|
committer | David Monniaux <David.Monniaux@univ-grenoble-alpes.fr> | 2021-09-20 20:38:59 +0200 |
commit | d96c0c24c098142d6c6cbf9c3b961c42823322bb (patch) | |
tree | 55fb7be998cbbab737c2badbc4725566d675e7d3 /test | |
parent | 2fd4ccbcda1494d3af6cbc1a9978ddeb76a8e014 (diff) | |
parent | bc0900442d879635ca57bb613fe7644133a63d75 (diff) | |
download | compcert-kvx-d96c0c24c098142d6c6cbf9c3b961c42823322bb.tar.gz compcert-kvx-d96c0c24c098142d6c6cbf9c3b961c42823322bb.zip |
Merge branch 'csmith' of gricad-gitlab.univ-grenoble-alpes.fr:sixcy/CompCert into csmith
Diffstat (limited to 'test')
-rwxr-xr-x | test/monniaux/csmith/reduce/reduce_wrt_host.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/monniaux/csmith/reduce/reduce_wrt_host.sh b/test/monniaux/csmith/reduce/reduce_wrt_host.sh index 5e86213e..7666c31b 100755 --- a/test/monniaux/csmith/reduce/reduce_wrt_host.sh +++ b/test/monniaux/csmith/reduce/reduce_wrt_host.sh @@ -1,15 +1,15 @@ #!/bin/bash INCLUDE=-I$COMPCERT/test/monniaux/csmith/csmith/include/csmith-2.3.0 -if /usr/bin/clang $INCLUDE -O -Werror=strict-prototypes -Werror=uninitialized -Werror=implicit -Werror=return-type source.c -o source.clang.host && valgrind --exit-on-first-error=yes --error-exitcode=120 --log-file=valgrind.out ./source.clang.host > source.clang.host.out ; +if /usr/bin/clang $INCLUDE -O -Werror=format -Werror=strict-prototypes -Werror=uninitialized -Werror=implicit -Werror=return-type source.c -o source.clang.host && valgrind --exit-on-first-error=yes --error-exitcode=120 --log-file=valgrind.out ./source.clang.host > source.clang.host.out ; then - if gcc $INCLUDE -Werror=strict-prototypes -Werror=uninitialized -Werror=implicit -Werror=return-type -fsanitize=undefined -fsanitize=address source.c -o source.gcc+san.host && ./source.gcc+san.host > source.gcc+san.host.out ; + if gcc $INCLUDE -Werror=format -Werror=strict-prototypes -Werror=uninitialized -Werror=implicit -Werror=return-type -fsanitize=undefined -fsanitize=address source.c -o source.gcc+san.host && ./source.gcc+san.host > source.gcc+san.host.out ; then - if cmp source.clang.host.out source.gcc+san.host.out && riscv64-linux-gnu-gcc $INCLUDE -Werror=uninitialized -Werror=implicit source.c -Werror=return-type -o source.gcc.target && qemu-riscv64 -L /usr/riscv64-linux-gnu source.gcc.target >& source.gcc.target.out && grep checksum source.gcc.target.out && diff source.clang.host.out source.gcc.target.out + if cmp source.clang.host.out source.gcc+san.host.out && aarch64-linux-gnu-gcc $INCLUDE -Werror=format -Werror=uninitialized -Werror=implicit source.c -Werror=return-type -o source.gcc.target && qemu-aarch64 -L /usr/aarch64-linux-gnu source.gcc.target >& source.gcc.target.out && grep checksum source.gcc.target.out > source.gcc.target.check && diff source.clang.host.out source.gcc.target.out then if $COMPCERT/ccomp $INCLUDE -fall -fno-cse -fno-cse2 -fno-cse3 source.c -o source.ccomp.target then - qemu-riscv64 -L /usr/riscv64-linux-gnu source.ccomp.target >& source.ccomp.target.out - if grep checksum source.ccomp.target.out && diff source.ccomp.target.out source.gcc.target.out + qemu-aarch64 -L /usr/aarch64-linux-gnu source.ccomp.target >& source.ccomp.target.out + if grep checksum source.ccomp.target.out > source.ccomp.target.check && diff source.ccomp.target.check source.gcc.target.check then exit 40 else exit 0 fi |