[Debian-med-packaging] Bug#756780: More help for ams statements needed (Was: [Help] Need help for architecture specific code)

Jérémy Lal kapouer at melix.org
Fri Sep 5 12:15:23 UTC 2014


Le vendredi 05 septembre 2014 à 13:35 +0200, Andreas Tille a écrit :
> Hi,
> 
> On Mon, Aug 04, 2014 at 12:58:42PM +0100, Wookey wrote:
> > +++ Andreas Tille [2014-08-04 09:48 +0200]:
>
> 	ebwt.h:1909: Error: invalid instruction suffix for `popcnt'
> 	make[2]: *** [bowtie-build] Error 1
> 
>      The relevant line in the code is:
> 
> 	$ grep -w -n  asm e*
> 	ebwt.h:1909:            asm ("popcntq %[x],%[count]\n": [count] "=&r" (count): [x] "r" (x));

A quick search shows this instruction is supported by -msse4.2 switch,
which is probably not enabled on debian i386 arch.

Another quick search show how to switch to popcnt (without q):

   ({ __cpu_mask r; \
-     asm ("popcntq %1, %0" : "=r" (r) : "0" (l));\
+     asm ("popcnt %1, %0" : "=r" (r) : "0" (l));\
      r; })

Jérémy.



More information about the Debian-med-packaging mailing list