soedinglab / hh-suite

Remote protein homology detection suite.
https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-019-3019-7
GNU General Public License v3.0
529 stars 133 forks source link

Fixing SIMD bitshift errors on PowerPC #189

Closed jhuber6 closed 4 years ago

jhuber6 commented 4 years ago

Fixing incorrect bitshifting instructions on PowerPC architectures. The program expects simdi_shiftx to shift by bytes while vec_slx shifts the whole vector by bits. vec_sxo is used instead, as far as I know the least significant 3 bits are ignored so the input must be shifted. simdi32_sxli is expected to shift within 32 bit lanes but vec slx shifts the whole vector. vec_sx is used instead with an unsigned integer argument.