On Mon, Dec 12, 2011 at 03:57:09PM +0400, Michael Zolotukhin wrote: > By the way, how could we check if '-mprefer-avx128' was specified from > target-supports.exp? Is there any global-variable for command line > options or something similar?
I'd say try some very simple vectorized loop and check how it has been vectorized. Whether using %xmm or %ymm vectors. Say int a[1024], b[1024], c[1024]; void foo (void) { int i; for (i = 0; i < 1024; i++) a[i] = b[i] + c[i]; } or so. Jakub