llvm-6502/test/MC/X86/x86-64-avx512dq.s
Robert Khasanov 281d2bf320 [SKX] Enabling mask logic instructions: encoding, lowering
Instructions: KAND{BWDQ}, KANDN{BWDQ}, KOR{BWDQ}, KXOR{BWDQ}, KXNOR{BWDQ}

Reviewed by Elena Demikhovsky <elena.demikhovsky@intel.com>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214081 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-28 13:46:45 +00:00

74 lines
2.0 KiB
ArmAsm

// RUN: llvm-mc -triple x86_64-unknown-unknown -mcpu=skx --show-encoding %s | FileCheck %s
// CHECK: kandb %k6, %k5, %k2
// CHECK: encoding: [0xc5,0xd5,0x41,0xd6]
kandb %k6, %k5, %k2
// CHECK: kandnb %k4, %k6, %k5
// CHECK: encoding: [0xc5,0xcd,0x42,0xec]
kandnb %k4, %k6, %k5
// CHECK: korb %k5, %k4, %k4
// CHECK: encoding: [0xc5,0xdd,0x45,0xe5]
korb %k5, %k4, %k4
// CHECK: kxnorb %k7, %k6, %k4
// CHECK: encoding: [0xc5,0xcd,0x46,0xe7]
kxnorb %k7, %k6, %k4
// CHECK: kxorb %k5, %k6, %k4
// CHECK: encoding: [0xc5,0xcd,0x47,0xe5]
kxorb %k5, %k6, %k4
// CHECK: knotb %k4, %k5
// CHECK: encoding: [0xc5,0xf9,0x44,0xec]
knotb %k4, %k5
// CHECK: knotb %k3, %k3
// CHECK: encoding: [0xc5,0xf9,0x44,0xdb]
knotb %k3, %k3
// CHECK: kmovb %k3, %k5
// CHECK: encoding: [0xc5,0xf9,0x90,0xeb]
kmovb %k3, %k5
// CHECK: kmovb (%rcx), %k5
// CHECK: encoding: [0xc5,0xf9,0x90,0x29]
kmovb (%rcx), %k5
// CHECK: kmovb 4660(%rax,%r14,8), %k5
// CHECK: encoding: [0xc4,0xa1,0x79,0x90,0xac,0xf0,0x34,0x12,0x00,0x00]
kmovb 4660(%rax,%r14,8), %k5
// CHECK: kmovb %k2, (%rcx)
// CHECK: encoding: [0xc5,0xf9,0x91,0x11]
kmovb %k2, (%rcx)
// CHECK: kmovb %k2, 4660(%rax,%r14,8)
// CHECK: encoding: [0xc4,0xa1,0x79,0x91,0x94,0xf0,0x34,0x12,0x00,0x00]
kmovb %k2, 4660(%rax,%r14,8)
// CHECK: kmovb %eax, %k2
// CHECK: encoding: [0xc5,0xf9,0x92,0xd0]
kmovb %eax, %k2
// CHECK: kmovb %ebp, %k2
// CHECK: encoding: [0xc5,0xf9,0x92,0xd5]
kmovb %ebp, %k2
// CHECK: kmovb %r13d, %k2
// CHECK: encoding: [0xc4,0xc1,0x79,0x92,0xd5]
kmovb %r13d, %k2
// CHECK: kmovb %k3, %eax
// CHECK: encoding: [0xc5,0xf9,0x93,0xc3]
kmovb %k3, %eax
// CHECK: kmovb %k3, %ebp
// CHECK: encoding: [0xc5,0xf9,0x93,0xeb]
kmovb %k3, %ebp
// CHECK: kmovb %k3, %r13d
// CHECK: encoding: [0xc5,0x79,0x93,0xeb]
kmovb %k3, %r13d