Run profile feedback tests with autofdo
authorAndi Kleen <ak@linux.intel.com>
Thu, 23 Jun 2016 14:34:04 +0000 (14:34 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Thu, 23 Jun 2016 14:34:04 +0000 (14:34 +0000)
commit7f586d904de25044a08f99669df5bc1ed2fa9f26
tree91935af5ca8da3b1809c9bd7bd8d4b7b0af1b0f9
parent7b72d14a9fc6f99caf54ed7b2a5b567d97bd3bb3
Run profile feedback tests with autofdo

Extend the existing bprob and tree-prof tests to also run with autofdo.
The test runtimes are really a bit too short for autofdo, but it's
a reasonable sanity check.

This only works natively for now.

dejagnu doesn't seem to support a wrapper for unix tests, so I had
to open code running these tests.  That should be ok due to the
native run restrictions.

gcc/testsuite/:

2016-06-23  Andi Kleen  <ak@linux.intel.com>

* g++.dg/bprob/bprob.exp: Support autofdo.
* g++.dg/tree-prof/tree-prof.exp: dito.
* gcc.dg/tree-prof/tree-prof.exp: dito.
* gcc.misc-tests/bprob.exp: dito.
* gfortran.dg/prof/prof.exp: dito.
* lib/profopt.exp: dito.
* lib/target-supports.exp: Check for autofdo.

From-SVN: r237732
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/bprob/bprob.exp
gcc/testsuite/g++.dg/tree-prof/tree-prof.exp
gcc/testsuite/gcc.dg/tree-prof/tree-prof.exp
gcc/testsuite/gcc.misc-tests/bprob.exp
gcc/testsuite/gfortran.dg/prof/prof.exp
gcc/testsuite/lib/profopt.exp
gcc/testsuite/lib/target-supports.exp