On 10/28/2015 12:38 PM, Bernd Schmidt wrote:
* This uses a plugin into whatever compiler was built, but sometimes you can't really set up unit tests that way because what you want to test depends on target specifics. What I've often wanted is a special test target that gets built with a special machine description that has whatever patterns are needed to replicate tricky situations in reload or other optimization passes.
Continuing to think out loud, this could be built in a separate top-level directory alongside the normal build. We've briefly had machinery to do something like that for OpenACC accel-gcc builds; that was removed but it shows that the concept is viable.
We should ensure that our framework for this is powerful enough to validate not just basic data structures like wide-int, but also questions like "I just set up an rtl insn in a specific way, does it produce the right set of reloads?"
Bernd