1 // RUN
: llvm-mc
-triple i386-unknown-unknown-unknown
--show-encoding
%s | FileCheck
%s
6 //CHECK
: nop # encoding: [0x90]
8 //CHECK
: lodsb
(%esi
), %al
# encoding: [0x67,0xac]
10 //CHECK
: lodsb
(%si
), %al
# encoding: [0xac]
12 //CHECK
: lodsb
(%esi
), %al
# encoding: [0x67,0xac]
14 //CHECK
: lodsl
%gs
:(%esi
), %eax
# encoding: [0x66,0x65,0x67,0xad]
16 //CHECK
: lodsw
(%esi
), %ax
# encoding: [0x67,0xad]
18 //CHECK
: stosw
%ax
, %es
:(%edi
) # encoding: [0x67,0xab]
20 //CHECK
: stosl
%eax
, %es
:(%edi
) # encoding: [0x66,0x67,0xab]
22 //CHECK
: stosb
%al
, %es
:(%edi
) # encoding: [0x67,0xaa]
24 //CHECK
: scasb
%es
:(%edi
), %al
# encoding: [0x67,0xae]
26 //CHECK
: scasw
%es
:(%di
), %ax
# encoding: [0xaf]
28 //CHECK
: cmpsb
%es
:(%edi
), (%esi
) # encoding: [0x67,0xa6]
30 //CHECK
: cmpsw
%es
:(%edi
), (%esi
) # encoding: [0x67,0xa7]
31 cmpsl
%es
:(%edi
), %ss
:(%esi
)
32 //CHECK
: cmpsl
%es
:(%edi
), %ss
:(%esi
) # encoding: [0x66,0x36,0x67,0xa7]
34 //CHECK
: movsb
(%esi
), %es
:(%edi
) # encoding: [0x67,0xa4]
35 movsl
%gs
:(%esi
), (%edi
)
36 //CHECK
: movsl
%gs
:(%esi
), %es
:(%edi
) # encoding: [0x66,0x65,0x67,0xa5]
38 //CHECK
: outsb
(%esi
), %dx
# encoding: [0x67,0x6e]
40 //CHECK
: outsw
%fs:(%esi
), %dx
# encoding: [0x64,0x67,0x6f]
42 //CHECK
: insw
%dx
, %es
:(%di
) # encoding: [0x6d]
44 //CHECK
: lcalll $
31438, $
31438 # encoding: [0x66,0x9a,0xce,0x7a,0x00,0x00,0xce,0x7a]
46 //CHECK
: retl
# encoding: [0x66,0xc3]
48 //CHECK
: popl
%ss
# encoding: [0x66,0x17]
50 //CHECK
: enter $
31438, $
127 # encoding: [0xc8,0xce,0x7a,0x7f]
52 //CHECK
: leave
# encoding: [0xc9]
54 //CHECK
: pushl
%ss
# encoding: [0x66,0x16]
56 //CHECK
: popl
%ss
# encoding: [0x66,0x17]
58 //CHECK
: popal
# encoding: [0x66,0x61]
60 //CHECK
: pushfl
# encoding: [0x66,0x9c]
62 //CHECK
: popfl
# encoding: [0x66,0x9d]
64 //CHECK
: pushw
4 # encoding: [0xff,0x36,0x04,0x00]