On Mon, Dec 12, 2011 at 03:00:52PM +0400, Michael Zolotukhin wrote: > I changed xfails to target-checks - for now I use common > vect_multiple_sizes (though it'll fail when wider vectors emerge). > Also, I changed AVX-check to the version Uros suggested. Please check > updated patch (attached). > > As for vect_multiple_sizes_32B_16B and similar - isn't it too > target-specific? I think if we want to keep everything as general as > possible, we should have something like vect_1_vector_size_available, > vect_2_vector_sizes_available, etc.
Depends on the test. For some tests you don't need to distinguish in between vect_multiple_sizes vs. !vect_multiple_sizes at all, the first size will work out. For other tests e.g. none could work out and thus you'd see for each attempted vector sizes similar messages. Then you can e.g. have tests with very small number of iterations that will e.g. work out only for 16-byte vectors and not for 32-byte vectors. In that case it depends on both vect_multiple_sizes vs. !vect_multiple_sizes, the number of sizes attempted, but also which was the first one, with -mprefer-avx128 you get different number of messages from -mavx -mno-prefer-avx128, because in the former case it will not retry with 32-byte vectors, while in the latter case it will start with 32-byte vectors and retry with 16-byte vectors. Jakub