[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: More help for ams statements needed (Was: [Help] Need help for architecture specific code)



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.




Reply to: