1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00
llvm-mirror/test/MC/X86/XSAVE-32.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

59 lines
1.6 KiB
ArmAsm

// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
// CHECK: xgetbv
// CHECK: encoding: [0x0f,0x01,0xd0]
xgetbv
// CHECK: xrstor -485498096(%edx,%eax,4)
// CHECK: encoding: [0x0f,0xae,0xac,0x82,0x10,0xe3,0x0f,0xe3]
xrstor -485498096(%edx,%eax,4)
// CHECK: xrstor 485498096(%edx,%eax,4)
// CHECK: encoding: [0x0f,0xae,0xac,0x82,0xf0,0x1c,0xf0,0x1c]
xrstor 485498096(%edx,%eax,4)
// CHECK: xrstor 485498096(%edx)
// CHECK: encoding: [0x0f,0xae,0xaa,0xf0,0x1c,0xf0,0x1c]
xrstor 485498096(%edx)
// CHECK: xrstor 485498096
// CHECK: encoding: [0x0f,0xae,0x2d,0xf0,0x1c,0xf0,0x1c]
xrstor 485498096
// CHECK: xrstor 64(%edx,%eax)
// CHECK: encoding: [0x0f,0xae,0x6c,0x02,0x40]
xrstor 64(%edx,%eax)
// CHECK: xrstor (%edx)
// CHECK: encoding: [0x0f,0xae,0x2a]
xrstor (%edx)
// CHECK: xsave -485498096(%edx,%eax,4)
// CHECK: encoding: [0x0f,0xae,0xa4,0x82,0x10,0xe3,0x0f,0xe3]
xsave -485498096(%edx,%eax,4)
// CHECK: xsave 485498096(%edx,%eax,4)
// CHECK: encoding: [0x0f,0xae,0xa4,0x82,0xf0,0x1c,0xf0,0x1c]
xsave 485498096(%edx,%eax,4)
// CHECK: xsave 485498096(%edx)
// CHECK: encoding: [0x0f,0xae,0xa2,0xf0,0x1c,0xf0,0x1c]
xsave 485498096(%edx)
// CHECK: xsave 485498096
// CHECK: encoding: [0x0f,0xae,0x25,0xf0,0x1c,0xf0,0x1c]
xsave 485498096
// CHECK: xsave 64(%edx,%eax)
// CHECK: encoding: [0x0f,0xae,0x64,0x02,0x40]
xsave 64(%edx,%eax)
// CHECK: xsave (%edx)
// CHECK: encoding: [0x0f,0xae,0x22]
xsave (%edx)
// CHECK: xsetbv
// CHECK: encoding: [0x0f,0x01,0xd1]
xsetbv