The original shell script was mkdir -p. The perl function mkdir()
doesn't do that, though, so we have to use File::Path::make_path().
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
VFMADD132SS is an FMA instruction, which was added to Haswell
architecture at the same time it got AVX2. This was correct prior to the
patch in PR #1.
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
Use the `endswith()` from string objects to determine if any of the
register names ends with `mm16`..`mm31`.
Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
Python's `in` operator are translated to a hash table lookup in Python;
it's more efficient than using it with lists or tuples. Modify the
instruction tables to use sets instead.
Also changes how the instruction tables are initialized; initializing
them using this syntax is slighly more efficient.
Analyzing the libc library on my system went from 3.40s to 2.61s with
this change alone.
Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
avxjudge.py: used automatically by the RPM scripts to heuristically
determine whether a library or plugin created with AVX2 or AVX512
support is worth keeping.
clr-avx-move.pl: inserted into RPM builds by Autospec to move the
libraries and plugins to their correct locations.
clr-python-avx2 and clr-python-avx512: wrappers for avxjudge.py.
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>