xref: /llvm-project/llvm/test/MC/X86/intel-syntax-ptr-sized.s (revision 910a73f3aa56388028d87e319862580daaf03152)
1// RUN: llvm-mc %s -triple=i686-pc-windows | FileCheck %s
2
3.intel_syntax
4
5push [eax]
6// CHECK: pushl (%eax)
7call [eax]
8// CHECK: calll *(%eax)
9pop [eax]
10// CHECK: popl (%eax)
11jmp [eax]
12// CHECK: jmpl *(%eax)
13
14lgdt [eax]
15// CHECK: lgdtl (%eax)
16lidt [eax]
17// CHECK: lidtl (%eax)
18sgdt [eax]
19// CHECK: sgdtl (%eax)
20sidt [eax]
21// CHECK: sidtl (%eax)
22
23// mode switch
24.code16
25
26push [eax]
27// CHECK: pushw (%eax)
28call [eax]
29// CHECK: callw *(%eax)
30pop [eax]
31// CHECK: popw (%eax)
32jmp [eax]
33// CHECK: jmpw *(%eax)
34
35lgdt [eax]
36// CHECK: lgdtw (%eax)
37lidt [eax]
38// CHECK: lidtw (%eax)
39sgdt [eax]
40// CHECK: sgdtw (%eax)
41sidt [eax]
42// CHECK: sidtw (%eax)
43