intel-syntax-ptr-sized.s
577 Bytes
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
// RUN: llvm-mc %s -triple=i686-pc-windows | FileCheck %s
.intel_syntax
push [eax]
// CHECK: pushl (%eax)
call [eax]
// CHECK: calll *(%eax)
jmp [eax]
// CHECK: jmpl *(%eax)
lgdt [eax]
// CHECK: lgdtl (%eax)
lidt [eax]
// CHECK: lidtl (%eax)
sgdt [eax]
// CHECK: sgdtl (%eax)
sidt [eax]
// CHECK: sidtl (%eax)
// mode switch
.code16
push [eax]
// CHECK: pushw (%eax)
call [eax]
// CHECK: callw *(%eax)
jmp [eax]
// CHECK: jmpw *(%eax)
lgdt [eax]
// CHECK: lgdtw (%eax)
lidt [eax]
// CHECK: lidtw (%eax)
sgdt [eax]
// CHECK: sgdtw (%eax)
sidt [eax]
// CHECK: sidtw (%eax)