diff options
author | nicolas.nardino <nicolas.nardino@ens-lyon.fr> | 2021-06-22 15:58:10 +0200 |
---|---|---|
committer | nicolas.nardino <nicolas.nardino@ens-lyon.fr> | 2021-06-22 15:58:10 +0200 |
commit | c5e8595480604c78260017cc771b0e4195fdd182 (patch) | |
tree | e7a05088dd8ad7003367be4c832bf5967ab92523 /test/gourdinl/compare_pp.sh | |
parent | 10cbe4b28ef6dc5d02c9a5d4d369484e4943a18d (diff) | |
parent | cf2aa686bcf9a823562fe977df6dd778d5467985 (diff) | |
download | compcert-kvx-c5e8595480604c78260017cc771b0e4195fdd182.tar.gz compcert-kvx-c5e8595480604c78260017cc771b0e4195fdd182.zip |
Merge branch 'kvx-sched-w-reg-press' of gricad-gitlab.univ-grenoble-alpes.fr:sixcy/CompCert into kvx-sched-w-reg-press
Diffstat (limited to 'test/gourdinl/compare_pp.sh')
-rwxr-xr-x | test/gourdinl/compare_pp.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/gourdinl/compare_pp.sh b/test/gourdinl/compare_pp.sh new file mode 100755 index 00000000..09183cf9 --- /dev/null +++ b/test/gourdinl/compare_pp.sh @@ -0,0 +1,16 @@ +ffname=$(basename $1) +fname=${ffname%.*} +nopp=$fname.nopp.s +pp=$fname.pp.s + +../../ccomp -fno-coalesce-mem -fno-postpass -S $1 -o $nopp +../../ccomp -fno-coalesce-mem -fpostpass= list -S $1 -o $pp +sed -i '1,2d' $nopp +sed -i '1,2d' $pp +if cmp -s $nopp $pp; then + echo "same!" +else + echo "differents!" + diff -y $nopp $pp +fi + |