mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
9635c35eec
NFC. Adding MC regressions tests to cover the AES and AVXAES ISA sets both 32 and 64 bit. 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, craig.topper, m_zuckerman, RKSimon Differential Revision: https://reviews.llvm.org/D41154 Change-Id: I2564f9797628d0c070c4766f837f399337fb87d2 llvm-svn: 320670
171 lines
6.5 KiB
ArmAsm
171 lines
6.5 KiB
ArmAsm
// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
|
|
|
|
// CHECK: vaesdec -485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x8c,0x82,0x10,0xe3,0x0f,0xe3]
|
|
vaesdec -485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdec 485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x8c,0x82,0xf0,0x1c,0xf0,0x1c]
|
|
vaesdec 485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdec 485498096(%edx), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x8a,0xf0,0x1c,0xf0,0x1c]
|
|
vaesdec 485498096(%edx), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdec 485498096, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x0d,0xf0,0x1c,0xf0,0x1c]
|
|
vaesdec 485498096, %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdec 64(%edx,%eax), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x4c,0x02,0x40]
|
|
vaesdec 64(%edx,%eax), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdec (%edx), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x0a]
|
|
vaesdec (%edx), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdeclast -485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x8c,0x82,0x10,0xe3,0x0f,0xe3]
|
|
vaesdeclast -485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdeclast 485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x8c,0x82,0xf0,0x1c,0xf0,0x1c]
|
|
vaesdeclast 485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdeclast 485498096(%edx), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x8a,0xf0,0x1c,0xf0,0x1c]
|
|
vaesdeclast 485498096(%edx), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdeclast 485498096, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x0d,0xf0,0x1c,0xf0,0x1c]
|
|
vaesdeclast 485498096, %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdeclast 64(%edx,%eax), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x4c,0x02,0x40]
|
|
vaesdeclast 64(%edx,%eax), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdeclast (%edx), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x0a]
|
|
vaesdeclast (%edx), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdeclast %xmm1, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0xc9]
|
|
vaesdeclast %xmm1, %xmm1, %xmm1
|
|
|
|
// CHECK: vaesdec %xmm1, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0xc9]
|
|
vaesdec %xmm1, %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenc -485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x8c,0x82,0x10,0xe3,0x0f,0xe3]
|
|
vaesenc -485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenc 485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x8c,0x82,0xf0,0x1c,0xf0,0x1c]
|
|
vaesenc 485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenc 485498096(%edx), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x8a,0xf0,0x1c,0xf0,0x1c]
|
|
vaesenc 485498096(%edx), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenc 485498096, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x0d,0xf0,0x1c,0xf0,0x1c]
|
|
vaesenc 485498096, %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenc 64(%edx,%eax), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x4c,0x02,0x40]
|
|
vaesenc 64(%edx,%eax), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenc (%edx), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x0a]
|
|
vaesenc (%edx), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenclast -485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x8c,0x82,0x10,0xe3,0x0f,0xe3]
|
|
vaesenclast -485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenclast 485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x8c,0x82,0xf0,0x1c,0xf0,0x1c]
|
|
vaesenclast 485498096(%edx,%eax,4), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenclast 485498096(%edx), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x8a,0xf0,0x1c,0xf0,0x1c]
|
|
vaesenclast 485498096(%edx), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenclast 485498096, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x0d,0xf0,0x1c,0xf0,0x1c]
|
|
vaesenclast 485498096, %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenclast 64(%edx,%eax), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x4c,0x02,0x40]
|
|
vaesenclast 64(%edx,%eax), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenclast (%edx), %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x0a]
|
|
vaesenclast (%edx), %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenclast %xmm1, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0xc9]
|
|
vaesenclast %xmm1, %xmm1, %xmm1
|
|
|
|
// CHECK: vaesenc %xmm1, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0xc9]
|
|
vaesenc %xmm1, %xmm1, %xmm1
|
|
|
|
// CHECK: vaesimc -485498096(%edx,%eax,4), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x8c,0x82,0x10,0xe3,0x0f,0xe3]
|
|
vaesimc -485498096(%edx,%eax,4), %xmm1
|
|
|
|
// CHECK: vaesimc 485498096(%edx,%eax,4), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x8c,0x82,0xf0,0x1c,0xf0,0x1c]
|
|
vaesimc 485498096(%edx,%eax,4), %xmm1
|
|
|
|
// CHECK: vaesimc 485498096(%edx), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x8a,0xf0,0x1c,0xf0,0x1c]
|
|
vaesimc 485498096(%edx), %xmm1
|
|
|
|
// CHECK: vaesimc 485498096, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x0d,0xf0,0x1c,0xf0,0x1c]
|
|
vaesimc 485498096, %xmm1
|
|
|
|
// CHECK: vaesimc 64(%edx,%eax), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x4c,0x02,0x40]
|
|
vaesimc 64(%edx,%eax), %xmm1
|
|
|
|
// CHECK: vaesimc (%edx), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x0a]
|
|
vaesimc (%edx), %xmm1
|
|
|
|
// CHECK: vaesimc %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0xc9]
|
|
vaesimc %xmm1, %xmm1
|
|
|
|
// CHECK: vaeskeygenassist $0, -485498096(%edx,%eax,4), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x8c,0x82,0x10,0xe3,0x0f,0xe3,0x00]
|
|
vaeskeygenassist $0, -485498096(%edx,%eax,4), %xmm1
|
|
|
|
// CHECK: vaeskeygenassist $0, 485498096(%edx,%eax,4), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x8c,0x82,0xf0,0x1c,0xf0,0x1c,0x00]
|
|
vaeskeygenassist $0, 485498096(%edx,%eax,4), %xmm1
|
|
|
|
// CHECK: vaeskeygenassist $0, 485498096(%edx), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x8a,0xf0,0x1c,0xf0,0x1c,0x00]
|
|
vaeskeygenassist $0, 485498096(%edx), %xmm1
|
|
|
|
// CHECK: vaeskeygenassist $0, 485498096, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x0d,0xf0,0x1c,0xf0,0x1c,0x00]
|
|
vaeskeygenassist $0, 485498096, %xmm1
|
|
|
|
// CHECK: vaeskeygenassist $0, 64(%edx,%eax), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x4c,0x02,0x40,0x00]
|
|
vaeskeygenassist $0, 64(%edx,%eax), %xmm1
|
|
|
|
// CHECK: vaeskeygenassist $0, (%edx), %xmm1
|
|
// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x0a,0x00]
|
|
vaeskeygenassist $0, (%edx), %xmm1
|
|
|
|
// CHECK: vaeskeygenassist $0, %xmm1, %xmm1
|
|
// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0xc9,0x00]
|
|
vaeskeygenassist $0, %xmm1, %xmm1
|
|
|