llvm-mirror/test/MC/X86/POPCNT-32.s
Gadi Haber 98d9000b4b [X86][MC]: Adding test coverage of MC encoding for several small extensions.<NFC>
NFC.
 Adding MC regressions tests to cover several small x86 extensions as follows:
 CLWB, CLZERO, F16C, INVPCID, PKU, POPCNT, RTM, SGX, SHA, SVM, VMFUNC, VTX

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: RKSimon, craig.topper, zvi, AndreiGrischenko
Differential Revision: https://reviews.llvm.org/D41388

Change-Id: I254508cd17faca00b780be0fc2abf6c71b61faab
llvm-svn: 324595
2018-02-08 11:16:02 +00:00

35 lines
1.0 KiB
ArmAsm

// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
// CHECK: popcntl %eax, %eax
// CHECK: encoding: [0xf3,0x0f,0xb8,0xc0]
popcntl %eax, %eax
// CHECK: popcntl 4096(%eax), %eax
// CHECK: encoding: [0xf3,0x0f,0xb8,0x80,0x00,0x10,0x00,0x00]
popcntl 4096(%eax), %eax
// CHECK: popcntl 64(%edx,%eax), %ecx
// CHECK: encoding: [0xf3,0x0f,0xb8,0x4c,0x02,0x40]
popcntl 64(%edx,%eax), %ecx
// CHECK: popcntl 64(%edx,%eax,4), %ecx
// CHECK: encoding: [0xf3,0x0f,0xb8,0x4c,0x82,0x40]
popcntl 64(%edx,%eax,4), %ecx
// CHECK: popcntw %ax, %ax
// CHECK: encoding: [0x66,0xf3,0x0f,0xb8,0xc0]
popcntw %ax, %ax
// CHECK: popcntw 4096(%eax), %ax
// CHECK: encoding: [0x66,0xf3,0x0f,0xb8,0x80,0x00,0x10,0x00,0x00]
popcntw 4096(%eax), %ax
// CHECK: popcntw 64(%edx,%eax), %cx
// CHECK: encoding: [0x66,0xf3,0x0f,0xb8,0x4c,0x02,0x40]
popcntw 64(%edx,%eax), %cx
// CHECK: popcntw 64(%edx,%eax,4), %cx
// CHECK: encoding: [0x66,0xf3,0x0f,0xb8,0x4c,0x82,0x40]
popcntw 64(%edx,%eax,4), %cx