• Adrian Hunter's avatar
    x86/insn: Add some more Intel instructions to the opcode map · af4933c1
    Adrian Hunter authored
    Add to the opcode map the following instructions:
    
    	v4fmaddps
    	v4fmaddss
    	v4fnmaddps
    	v4fnmaddss
    	vaesdec
    	vaesdeclast
    	vaesenc
    	vaesenclast
    	vcvtne2ps2bf16
    	vcvtneps2bf16
    	vdpbf16ps
    	gf2p8affineinvqb
    	vgf2p8affineinvqb
    	gf2p8affineqb
    	vgf2p8affineqb
    	gf2p8mulb
    	vgf2p8mulb
    	vp2intersectd
    	vp2intersectq
    	vp4dpwssd
    	vp4dpwssds
    	vpclmulqdq
    	vpcompressb
    	vpcompressw
    	vpdpbusd
    	vpdpbusds
    	vpdpwssd
    	vpdpwssds
    	vpexpandb
    	vpexpandw
    	vpopcntb
    	vpopcntd
    	vpopcntq
    	vpopcntw
    	vpshldd
    	vpshldq
    	vpshldvd
    	vpshldvq
    	vpshldvw
    	vpshldw
    	vpshrdd
    	vpshrdq
    	vpshrdvd
    	vpshrdvq
    	vpshrdvw
    	vpshrdw
    	vpshufbitqmb
    
    For information about the instructions, refer Intel SDM May 2019
    (325462-070US) and Intel Architecture Instruction Set Extensions May
    2019 (319433-037).
    
    The instruction decoding can be tested using the perf tools' "x86
    instruction decoder - new instructions" test e.g.
    
      $ perf test -v "new " 2>&1 | grep -i 'v4fmaddps'
      Decoded ok: 62 f2 7f 48 9a 20                   v4fmaddps (%eax),%zmm0,%zmm4
      Decoded ok: 62 f2 7f 48 9a a4 c8 78 56 34 12    v4fmaddps 0x12345678(%eax,%ecx,8),%zmm0,%zmm4
      Decoded ok: 62 f2 7f 48 9a 20                   v4fmaddps (%rax),%zmm0,%zmm4
      Decoded ok: 67 62 f2 7f 48 9a 20                v4fmaddps (%eax),%zmm0,%zmm4
      Decoded ok: 62 f2 7f 48 9a a4 c8 78 56 34 12    v4fmaddps 0x12345678(%rax,%rcx,8),%zmm0,%zmm4
      Decoded ok: 67 62 f2 7f 48 9a a4 c8 78 56 34 12 v4fmaddps 0x12345678(%eax,%ecx,8),%zmm0,%zmm4
    Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
    Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Yu-cheng Yu <yu-cheng.yu@intel.com>
    Cc: x86@kernel.org
    Link: http://lore.kernel.org/lkml/20191125125044.31879-3-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    af4933c1
x86-opcode-map.txt 32.5 KB