Skip to content

Commit

Permalink
driver stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
regehr committed Sep 30, 2014
1 parent e7c69cb commit 0c5334c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
41 changes: 27 additions & 14 deletions driver/evaluate_program
Expand Up @@ -27,9 +27,9 @@ my $COMPILER_TIMEOUT = 30;

my $COMPILER_TIMEOUT_RES = 137;

my $RUN_PROGRAM = 1;
my $RUN_PROGRAM = 0;

my $DO_REDUCE_CRASH = 0;
my $DO_REDUCE_CRASH = 1;
my $DO_REDUCE_WRONG = 1;

####################################################################
Expand All @@ -43,11 +43,23 @@ my $LOCKFN = "/var/tmp/version_search_lockfile";
####################################################################

my @gcc_opts = (
"-w -O0",
"-w -O1",
"-w -Os",
"-w -O2",
"-w -Ofast");
"-w -O0 -march=core-avx2 -mtune=core-avx2",
"-w -O1 -march=core-avx2 -mtune=core-avx2",
"-w -Og -march=core-avx2 -mtune=core-avx2",
"-w -Os -march=core-avx2 -mtune=core-avx2",
"-w -O2 -march=core-avx2 -mtune=core-avx2",
"-w -O3 -march=core-avx2 -mtune=core-avx2",
"-w -Ofast -march=core-avx2 -mtune=core-avx2",
);

my @clang_opts = (
"-w -O0 -march=core-avx2 -mtune=core-avx2",
"-w -O1 -march=core-avx2 -mtune=core-avx2",
"-w -Os -march=core-avx2 -mtune=core-avx2",
"-w -O2 -march=core-avx2 -mtune=core-avx2",
"-w -O3 -march=core-avx2 -mtune=core-avx2",
"-w -Ofast -march=core-avx2 -mtune=core-avx2",
);

my @o0only = (
"-O0",
Expand Down Expand Up @@ -81,8 +93,12 @@ my @clang = ("clang",
\@sclang_opts);

my @gcccurrent = ("gcc",
"/home/regehr/z/compiler-install/gcc-r205951-install/bin/gcc",
\@gcc_opts);
"/home/regehr/z/compiler-install/gcc-r215698-install/bin/gcc",
\@gcc_opts);

my @clangcurrent = ("clang",
"/home/regehr/z/compiler-install/llvm-r218640-install/bin/clang",
\@clang_opts);

my @ccomp = ("ccomp",
"ccomp",
Expand Down Expand Up @@ -178,11 +194,8 @@ my @clang33 = ("clang33",

my @compilers_to_test = (

#\@gcc,
#\@clang,
\@clang_souper,

#\@gcccurrent,
\@clangcurrent,
\@gcccurrent,
#\@ccomp,

#\@gcc320,
Expand Down
3 changes: 1 addition & 2 deletions driver/random_test
Expand Up @@ -56,8 +56,7 @@ my $CSMITH_TIMEOUT = 180;

my $PROVIDE_SEED = 1;

my $XTRA = "--no-unions --no-argc";
#my $XTRA = "";
my $XTRA = "--no-unions --float --no-argc";

my $PACK = "";

Expand Down
1 change: 1 addition & 0 deletions runtime/csmith.h
Expand Up @@ -38,6 +38,7 @@
/*****************************************************************************/

#include <string.h>
#include <float.h>

#define __STDC_LIMIT_MACROS
#include "random_inc.h"
Expand Down

0 comments on commit 0c5334c

Please sign in to comment.