Merge branch 'nasm-2.05.xx'

This commit is contained in:
H. Peter Anvin 2008-11-06 09:41:23 -08:00
commit 475421695d
2 changed files with 35 additions and 3 deletions

View File

@ -1854,9 +1854,9 @@ PCMPESTRM xmmreg,xmmrm,imm \361\3\x0F\x3A\x60\110\26 SSE42
PCMPISTRI xmmreg,xmmrm,imm \361\3\x0F\x3A\x63\110\26 SSE42
PCMPISTRM xmmreg,xmmrm,imm \361\3\x0F\x3A\x62\110\26 SSE42
PCMPGTQ xmmreg,xmmrm \361\3\x0F\x38\x37\110 SSE42
POPCNT reg16,rm16 \320\363\2\x0F\xB8\110 NEHALEM
POPCNT reg32,rm32 \321\363\2\x0F\xB8\110 NEHALEM
POPCNT reg64,rm32 \324\363\2\x0F\xB8\110 NEHALEM,X64
POPCNT reg16,rm16 \320\363\2\x0F\xB8\110 NEHALEM,SW
POPCNT reg32,rm32 \321\363\2\x0F\xB8\110 NEHALEM,SD
POPCNT reg64,rm64 \324\363\2\x0F\xB8\110 NEHALEM,SQ,X64
;# AMD SSE5 instructions

32
test/popcnt.asm Normal file
View File

@ -0,0 +1,32 @@
;Testname=test; Arguments=-fbin -opopcnt.bin; Files=stdout stderr popcnt.bin
bits 16
popcnt ax,cx
popcnt ax,[si]
popcnt ax,word [si]
popcnt eax,ecx
popcnt eax,[si]
popcnt eax,dword [si]
bits 32
popcnt ax,cx
popcnt ax,[esi]
popcnt ax,word [esi]
popcnt eax,ecx
popcnt eax,[esi]
popcnt eax,dword [esi]
bits 64
popcnt ax,cx
popcnt ax,[rsi]
popcnt ax,word [rsi]
popcnt eax,ecx
popcnt eax,[rsi]
popcnt eax,dword [rsi]
popcnt rax,rcx
popcnt rax,[rsi]
popcnt rax,qword [rsi]