Dmitry Gorbachev

- SETxx instructions require 8-bit operand, but "r" constraint is used. Use "q" instead ("r" means any general register, including esi and edi, which are not suitable as an operand of setnz.)
See issue #3772 for more details.

svn path=/trunk/; revision=37542
This commit is contained in:
Aleksey Bragin 2008-11-22 08:26:53 +00:00
parent 54389c838c
commit 5312b56416

View file

@ -4812,7 +4812,7 @@ BitScanReverse(OUT ULONG *Index,
#if defined(_M_IX86)
__asm__ __volatile__("bsrl %2,%0\n\t"
"setnz %1\n\t"
:"=&r" (*Index), "=r" (BitPosition)
:"=&r" (*Index), "=q" (BitPosition)
:"rm" (Mask)
:"memory");
return BitPosition;