1// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
2
3// CHECK: fxrstor 485498096
4// CHECK: encoding: [0x0f,0xae,0x0c,0x25,0xf0,0x1c,0xf0,0x1c]
5fxrstor 485498096
6
7// CHECK: fxrstor 64(%rdx)
8// CHECK: encoding: [0x0f,0xae,0x4a,0x40]
9fxrstor 64(%rdx)
10
11// CHECK: fxrstor 64(%rdx,%rax,4)
12// CHECK: encoding: [0x0f,0xae,0x4c,0x82,0x40]
13fxrstor 64(%rdx,%rax,4)
14
15// CHECK: fxrstor -64(%rdx,%rax,4)
16// CHECK: encoding: [0x0f,0xae,0x4c,0x82,0xc0]
17fxrstor -64(%rdx,%rax,4)
18
19// CHECK: fxrstor 64(%rdx,%rax)
20// CHECK: encoding: [0x0f,0xae,0x4c,0x02,0x40]
21fxrstor 64(%rdx,%rax)
22
23// CHECK: fxrstor (%rdx)
24// CHECK: encoding: [0x0f,0xae,0x0a]
25fxrstor (%rdx)
26
27// CHECK: fxsave 485498096
28// CHECK: encoding: [0x0f,0xae,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
29fxsave 485498096
30
31// CHECK: fxsave 64(%rdx)
32// CHECK: encoding: [0x0f,0xae,0x42,0x40]
33fxsave 64(%rdx)
34
35// CHECK: fxsave 64(%rdx,%rax,4)
36// CHECK: encoding: [0x0f,0xae,0x44,0x82,0x40]
37fxsave 64(%rdx,%rax,4)
38
39// CHECK: fxsave -64(%rdx,%rax,4)
40// CHECK: encoding: [0x0f,0xae,0x44,0x82,0xc0]
41fxsave -64(%rdx,%rax,4)
42
43// CHECK: fxsave 64(%rdx,%rax)
44// CHECK: encoding: [0x0f,0xae,0x44,0x02,0x40]
45fxsave 64(%rdx,%rax)
46
47// CHECK: fxsave (%rdx)
48// CHECK: encoding: [0x0f,0xae,0x02]
49fxsave (%rdx)
50
51