diff options
author | Richard Biener <rguenther@suse.de> | 2016-08-19 07:02:05 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-08-19 07:02:05 +0000 |
commit | 1a5da5b66a5d2d2fe87fdeddf475ec2c3c54c49f (patch) | |
tree | 66a0ee1a6c56de95b154b3ba52310053be19a87c /gcc/testsuite/gcc.dg | |
parent | 82f72146967e71693f2d4f6646f35c3c00780602 (diff) | |
download | gcc-1a5da5b66a5d2d2fe87fdeddf475ec2c3c54c49f.zip gcc-1a5da5b66a5d2d2fe87fdeddf475ec2c3c54c49f.tar.gz gcc-1a5da5b66a5d2d2fe87fdeddf475ec2c3c54c49f.tar.bz2 |
re PR tree-optimization/77286 (ICE in fold_convert_loc, at fold-const.c:2248 building 435.gromacs)
2016-08-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/77286
* tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
Deal with virtual PHIs being out-of-order.
* gcc.dg/torture/pr77286.c: New testcase.
From-SVN: r239605
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr77286.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr77286.c b/gcc/testsuite/gcc.dg/torture/pr77286.c new file mode 100644 index 0000000..0c06100 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr77286.c @@ -0,0 +1,43 @@ +/* { dg-do compile } */ +/* { dg-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } } */ + +typedef float real; +typedef struct +{ + int ngtc; + real *ref_t; + real *tau_t; +} t_grpopts; +typedef struct +{ + real T; + real xi; +} t_grp_tcstat; +typedef struct +{ + t_grp_tcstat *tcstat; +} t_groups; +extern real *save_calloc (); +void +nosehoover_tcoupl (t_grpopts * opts, t_groups * grps, real dt, real SAfactor) +{ + static real *Qinv = ((void *) 0); + int i; + real reft = 0, xit, oldxi; + if (Qinv == ((void *) 0)) + { + (Qinv) = + save_calloc ("Qinv", "coupling.c", 372, (opts->ngtc), + sizeof (*(Qinv))); + for (i = 0; i < opts->ngtc; i++) + if ((opts->tau_t[i] > 0)) + Qinv[i] = 1.0 / opts->tau_t[i]; + } + for (i = 0; (i < opts->ngtc); i++) + { + reft = + (((0.0) > + (opts->ref_t[i] * SAfactor)) ? (0.0) : (opts->ref_t[i] * SAfactor)); + grps->tcstat[i].xi += dt * Qinv[i] * (grps->tcstat[i].T - reft); + } +} |