code16gcc.s
2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// RUN: llvm-mc -triple i386-unknown-unknown-unknown --show-encoding %s | FileCheck %s
.code16gcc
//CHECK: .code16
nop
//CHECK: nop # encoding: [0x90]
lodsb
//CHECK: lodsb (%esi), %al # encoding: [0x67,0xac]
lodsb (%si), %al
//CHECK: lodsb (%si), %al # encoding: [0xac]
lodsb (%esi), %al
//CHECK: lodsb (%esi), %al # encoding: [0x67,0xac]
lodsl %gs:(%esi)
//CHECK: lodsl %gs:(%esi), %eax # encoding: [0x66,0x65,0x67,0xad]
lods (%esi), %ax
//CHECK: lodsw (%esi), %ax # encoding: [0x67,0xad]
stosw
//CHECK: stosw %ax, %es:(%edi) # encoding: [0x67,0xab]
stos %eax, (%edi)
//CHECK: stosl %eax, %es:(%edi) # encoding: [0x66,0x67,0xab]
stosb %al, %es:(%edi)
//CHECK: stosb %al, %es:(%edi) # encoding: [0x67,0xaa]
scas %es:(%edi), %al
//CHECK: scasb %es:(%edi), %al # encoding: [0x67,0xae]
scas %es:(%di), %ax
//CHECK: scasw %es:(%di), %ax # encoding: [0xaf]
cmpsb
//CHECK: cmpsb %es:(%edi), (%esi) # encoding: [0x67,0xa6]
cmpsw (%edi), (%esi)
//CHECK: cmpsw %es:(%edi), (%esi) # encoding: [0x67,0xa7]
cmpsl %es:(%edi), %ss:(%esi)
//CHECK: cmpsl %es:(%edi), %ss:(%esi) # encoding: [0x66,0x36,0x67,0xa7]
movsb (%esi), (%edi)
//CHECK: movsb (%esi), %es:(%edi) # encoding: [0x67,0xa4]
movsl %gs:(%esi), (%edi)
//CHECK: movsl %gs:(%esi), %es:(%edi) # encoding: [0x66,0x65,0x67,0xa5]
outsb
//CHECK: outsb (%esi), %dx # encoding: [0x67,0x6e]
outsw %fs:(%esi), %dx
//CHECK: outsw %fs:(%esi), %dx # encoding: [0x64,0x67,0x6f]
insw %dx, (%di)
//CHECK: insw %dx, %es:(%di) # encoding: [0x6d]
call $0x7ace,$0x7ace
//CHECK: lcalll $31438, $31438 # encoding: [0x66,0x9a,0xce,0x7a,0x00,0x00,0xce,0x7a]
ret
//CHECK: retl # encoding: [0x66,0xc3]
pop %ss
//CHECK: popl %ss # encoding: [0x66,0x17]
enter $0x7ace,$0x7f
//CHECK: enter $31438, $127 # encoding: [0xc8,0xce,0x7a,0x7f]
leave
//CHECK: leave # encoding: [0xc9]
push %ss
//CHECK: pushl %ss # encoding: [0x66,0x16]
pop %ss
//CHECK: popl %ss # encoding: [0x66,0x17]
popa
//CHECK: popal # encoding: [0x66,0x61]
pushf
//CHECK: pushfl # encoding: [0x66,0x9c]
popf
//CHECK: popfl # encoding: [0x66,0x9d]
pushw 4
//CHECK: pushw 4 # encoding: [0xff,0x36,0x04,0x00]