1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/MC/X86/FXSAVE-64.s
Gadi Haber 6e5511c95c [X86][XSAVE]: Adding full coverage of MC encoding for the XSAVE isa sets.<NFC>
NFC.
 Adding MC regressions tests to cover the XSAVE ISA sets.
 This patch is part of a larger task to cover MC encoding of all X86 ISA Sets started in revision: https://reviews.llvm.org/D39952

Reviewers: zvi, RKSimon, AndreiGrischenko, craig.topper
Differential Revision: https://reviews.llvm.org/D41282

Change-Id: I325bf8f421f78c80179a04fc39033366759cbe45
llvm-svn: 322537
2018-01-16 08:50:29 +00:00

51 lines
1.3 KiB
ArmAsm

// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
// CHECK: fxrstor 485498096
// CHECK: encoding: [0x0f,0xae,0x0c,0x25,0xf0,0x1c,0xf0,0x1c]
fxrstor 485498096
// CHECK: fxrstor 64(%rdx)
// CHECK: encoding: [0x0f,0xae,0x4a,0x40]
fxrstor 64(%rdx)
// CHECK: fxrstor 64(%rdx,%rax,4)
// CHECK: encoding: [0x0f,0xae,0x4c,0x82,0x40]
fxrstor 64(%rdx,%rax,4)
// CHECK: fxrstor -64(%rdx,%rax,4)
// CHECK: encoding: [0x0f,0xae,0x4c,0x82,0xc0]
fxrstor -64(%rdx,%rax,4)
// CHECK: fxrstor 64(%rdx,%rax)
// CHECK: encoding: [0x0f,0xae,0x4c,0x02,0x40]
fxrstor 64(%rdx,%rax)
// CHECK: fxrstor (%rdx)
// CHECK: encoding: [0x0f,0xae,0x0a]
fxrstor (%rdx)
// CHECK: fxsave 485498096
// CHECK: encoding: [0x0f,0xae,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
fxsave 485498096
// CHECK: fxsave 64(%rdx)
// CHECK: encoding: [0x0f,0xae,0x42,0x40]
fxsave 64(%rdx)
// CHECK: fxsave 64(%rdx,%rax,4)
// CHECK: encoding: [0x0f,0xae,0x44,0x82,0x40]
fxsave 64(%rdx,%rax,4)
// CHECK: fxsave -64(%rdx,%rax,4)
// CHECK: encoding: [0x0f,0xae,0x44,0x82,0xc0]
fxsave -64(%rdx,%rax,4)
// CHECK: fxsave 64(%rdx,%rax)
// CHECK: encoding: [0x0f,0xae,0x44,0x02,0x40]
fxsave 64(%rdx,%rax)
// CHECK: fxsave (%rdx)
// CHECK: encoding: [0x0f,0xae,0x02]
fxsave (%rdx)