Commit fcd094e5 authored by Adrian Hunter's avatar Adrian Hunter Committed by Namhyung Kim

perf tests: Add APX and other new instructions to x86 instruction decoder test

Add samples of APX and other new instructions to the 'x86 instruction
decoder - new instructions' test.

Note the test is only available if the perf tool has been built with
EXTRA_TESTS=1.

Example:

  $ make EXTRA_TESTS=1 -C tools/perf
  $ tools/perf/perf test -F -v 'new ins' |& grep -i 'jmpabs\|popp\|pushp'
  Decoded ok: d5 00 a1 ef cd ab 90 78 56 34 12    jmpabs $0x1234567890abcdef
  Decoded ok: d5 08 53                    pushp  %rbx
  Decoded ok: d5 18 50                    pushp  %r16
  Decoded ok: d5 19 57                    pushp  %r31
  Decoded ok: d5 19 5f                    popp   %r31
  Decoded ok: d5 18 58                    popp   %r16
  Decoded ok: d5 08 5b                    popp   %rbx
Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Chang S. Bae <chang.seok.bae@intel.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Nikolay Borisov <nik.borisov@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: x86@kernel.org
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240502105853.5338-11-adrian.hunter@intel.com
parent a44abd2c
......@@ -3107,6 +3107,122 @@
"62 f5 7c 08 2e ca \tvucomish %xmm2,%xmm1",},
{{0x62, 0xf5, 0x7c, 0x08, 0x2e, 0x8c, 0xc8, 0x78, 0x56, 0x34, 0x12, }, 11, 0, "", "",
"62 f5 7c 08 2e 8c c8 78 56 34 12 \tvucomish 0x12345678(%eax,%ecx,8),%xmm1",},
{{0xf3, 0x0f, 0x38, 0xdc, 0xd1, }, 5, 0, "", "",
"f3 0f 38 dc d1 \tloadiwkey %xmm1,%xmm2",},
{{0xf3, 0x0f, 0x38, 0xfa, 0xd0, }, 5, 0, "", "",
"f3 0f 38 fa d0 \tencodekey128 %eax,%edx",},
{{0xf3, 0x0f, 0x38, 0xfb, 0xd0, }, 5, 0, "", "",
"f3 0f 38 fb d0 \tencodekey256 %eax,%edx",},
{{0xf3, 0x0f, 0x38, 0xdc, 0x5a, 0x77, }, 6, 0, "", "",
"f3 0f 38 dc 5a 77 \taesenc128kl 0x77(%edx),%xmm3",},
{{0xf3, 0x0f, 0x38, 0xde, 0x5a, 0x77, }, 6, 0, "", "",
"f3 0f 38 de 5a 77 \taesenc256kl 0x77(%edx),%xmm3",},
{{0xf3, 0x0f, 0x38, 0xdd, 0x5a, 0x77, }, 6, 0, "", "",
"f3 0f 38 dd 5a 77 \taesdec128kl 0x77(%edx),%xmm3",},
{{0xf3, 0x0f, 0x38, 0xdf, 0x5a, 0x77, }, 6, 0, "", "",
"f3 0f 38 df 5a 77 \taesdec256kl 0x77(%edx),%xmm3",},
{{0xf3, 0x0f, 0x38, 0xd8, 0x42, 0x77, }, 6, 0, "", "",
"f3 0f 38 d8 42 77 \taesencwide128kl 0x77(%edx)",},
{{0xf3, 0x0f, 0x38, 0xd8, 0x52, 0x77, }, 6, 0, "", "",
"f3 0f 38 d8 52 77 \taesencwide256kl 0x77(%edx)",},
{{0xf3, 0x0f, 0x38, 0xd8, 0x4a, 0x77, }, 6, 0, "", "",
"f3 0f 38 d8 4a 77 \taesdecwide128kl 0x77(%edx)",},
{{0xf3, 0x0f, 0x38, 0xd8, 0x5a, 0x77, }, 6, 0, "", "",
"f3 0f 38 d8 5a 77 \taesdecwide256kl 0x77(%edx)",},
{{0x0f, 0x38, 0xfc, 0x08, }, 4, 0, "", "",
"0f 38 fc 08 \taadd %ecx,(%eax)",},
{{0x0f, 0x38, 0xfc, 0x15, 0x78, 0x56, 0x34, 0x12, }, 8, 0, "", "",
"0f 38 fc 15 78 56 34 12 \taadd %edx,0x12345678",},
{{0x0f, 0x38, 0xfc, 0x94, 0xc8, 0x78, 0x56, 0x34, 0x12, }, 9, 0, "", "",
"0f 38 fc 94 c8 78 56 34 12 \taadd %edx,0x12345678(%eax,%ecx,8)",},
{{0x66, 0x0f, 0x38, 0xfc, 0x08, }, 5, 0, "", "",
"66 0f 38 fc 08 \taand %ecx,(%eax)",},
{{0x66, 0x0f, 0x38, 0xfc, 0x15, 0x78, 0x56, 0x34, 0x12, }, 9, 0, "", "",
"66 0f 38 fc 15 78 56 34 12 \taand %edx,0x12345678",},
{{0x66, 0x0f, 0x38, 0xfc, 0x94, 0xc8, 0x78, 0x56, 0x34, 0x12, }, 10, 0, "", "",
"66 0f 38 fc 94 c8 78 56 34 12 \taand %edx,0x12345678(%eax,%ecx,8)",},
{{0xf2, 0x0f, 0x38, 0xfc, 0x08, }, 5, 0, "", "",
"f2 0f 38 fc 08 \taor %ecx,(%eax)",},
{{0xf2, 0x0f, 0x38, 0xfc, 0x15, 0x78, 0x56, 0x34, 0x12, }, 9, 0, "", "",
"f2 0f 38 fc 15 78 56 34 12 \taor %edx,0x12345678",},
{{0xf2, 0x0f, 0x38, 0xfc, 0x94, 0xc8, 0x78, 0x56, 0x34, 0x12, }, 10, 0, "", "",
"f2 0f 38 fc 94 c8 78 56 34 12 \taor %edx,0x12345678(%eax,%ecx,8)",},
{{0xf3, 0x0f, 0x38, 0xfc, 0x08, }, 5, 0, "", "",
"f3 0f 38 fc 08 \taxor %ecx,(%eax)",},
{{0xf3, 0x0f, 0x38, 0xfc, 0x15, 0x78, 0x56, 0x34, 0x12, }, 9, 0, "", "",
"f3 0f 38 fc 15 78 56 34 12 \taxor %edx,0x12345678",},
{{0xf3, 0x0f, 0x38, 0xfc, 0x94, 0xc8, 0x78, 0x56, 0x34, 0x12, }, 10, 0, "", "",
"f3 0f 38 fc 94 c8 78 56 34 12 \taxor %edx,0x12345678(%eax,%ecx,8)",},
{{0xc4, 0xe2, 0x7a, 0xb1, 0x31, }, 5, 0, "", "",
"c4 e2 7a b1 31 \tvbcstnebf162ps (%ecx),%xmm6",},
{{0xc4, 0xe2, 0x79, 0xb1, 0x31, }, 5, 0, "", "",
"c4 e2 79 b1 31 \tvbcstnesh2ps (%ecx),%xmm6",},
{{0xc4, 0xe2, 0x7a, 0xb0, 0x31, }, 5, 0, "", "",
"c4 e2 7a b0 31 \tvcvtneebf162ps (%ecx),%xmm6",},
{{0xc4, 0xe2, 0x79, 0xb0, 0x31, }, 5, 0, "", "",
"c4 e2 79 b0 31 \tvcvtneeph2ps (%ecx),%xmm6",},
{{0xc4, 0xe2, 0x7b, 0xb0, 0x31, }, 5, 0, "", "",
"c4 e2 7b b0 31 \tvcvtneobf162ps (%ecx),%xmm6",},
{{0xc4, 0xe2, 0x78, 0xb0, 0x31, }, 5, 0, "", "",
"c4 e2 78 b0 31 \tvcvtneoph2ps (%ecx),%xmm6",},
{{0x62, 0xf2, 0x7e, 0x08, 0x72, 0xf1, }, 6, 0, "", "",
"62 f2 7e 08 72 f1 \tvcvtneps2bf16 %xmm1,%xmm6",},
{{0xc4, 0xe2, 0x6b, 0x50, 0xd9, }, 5, 0, "", "",
"c4 e2 6b 50 d9 \tvpdpbssd %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x6b, 0x51, 0xd9, }, 5, 0, "", "",
"c4 e2 6b 51 d9 \tvpdpbssds %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x6a, 0x50, 0xd9, }, 5, 0, "", "",
"c4 e2 6a 50 d9 \tvpdpbsud %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x6a, 0x51, 0xd9, }, 5, 0, "", "",
"c4 e2 6a 51 d9 \tvpdpbsuds %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x68, 0x50, 0xd9, }, 5, 0, "", "",
"c4 e2 68 50 d9 \tvpdpbuud %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x68, 0x51, 0xd9, }, 5, 0, "", "",
"c4 e2 68 51 d9 \tvpdpbuuds %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x6a, 0xd2, 0xd9, }, 5, 0, "", "",
"c4 e2 6a d2 d9 \tvpdpwsud %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x6a, 0xd3, 0xd9, }, 5, 0, "", "",
"c4 e2 6a d3 d9 \tvpdpwsuds %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x69, 0xd2, 0xd9, }, 5, 0, "", "",
"c4 e2 69 d2 d9 \tvpdpwusd %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x69, 0xd3, 0xd9, }, 5, 0, "", "",
"c4 e2 69 d3 d9 \tvpdpwusds %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x68, 0xd2, 0xd9, }, 5, 0, "", "",
"c4 e2 68 d2 d9 \tvpdpwuud %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x68, 0xd3, 0xd9, }, 5, 0, "", "",
"c4 e2 68 d3 d9 \tvpdpwuuds %xmm1,%xmm2,%xmm3",},
{{0x62, 0xf2, 0xed, 0x08, 0xb5, 0xd9, }, 6, 0, "", "",
"62 f2 ed 08 b5 d9 \tvpmadd52huq %xmm1,%xmm2,%xmm3",},
{{0x62, 0xf2, 0xed, 0x08, 0xb4, 0xd9, }, 6, 0, "", "",
"62 f2 ed 08 b4 d9 \tvpmadd52luq %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x7f, 0xcc, 0xd1, }, 5, 0, "", "",
"c4 e2 7f cc d1 \tvsha512msg1 %xmm1,%ymm2",},
{{0xc4, 0xe2, 0x7f, 0xcd, 0xd1, }, 5, 0, "", "",
"c4 e2 7f cd d1 \tvsha512msg2 %ymm1,%ymm2",},
{{0xc4, 0xe2, 0x6f, 0xcb, 0xd9, }, 5, 0, "", "",
"c4 e2 6f cb d9 \tvsha512rnds2 %xmm1,%ymm2,%ymm3",},
{{0xc4, 0xe2, 0x68, 0xda, 0xd9, }, 5, 0, "", "",
"c4 e2 68 da d9 \tvsm3msg1 %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x69, 0xda, 0xd9, }, 5, 0, "", "",
"c4 e2 69 da d9 \tvsm3msg2 %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe3, 0x69, 0xde, 0xd9, 0xa1, }, 6, 0, "", "",
"c4 e3 69 de d9 a1 \tvsm3rnds2 $0xa1,%xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x6a, 0xda, 0xd9, }, 5, 0, "", "",
"c4 e2 6a da d9 \tvsm4key4 %xmm1,%xmm2,%xmm3",},
{{0xc4, 0xe2, 0x6b, 0xda, 0xd9, }, 5, 0, "", "",
"c4 e2 6b da d9 \tvsm4rnds4 %xmm1,%xmm2,%xmm3",},
{{0x0f, 0x0d, 0x00, }, 3, 0, "", "",
"0f 0d 00 \tprefetch (%eax)",},
{{0x0f, 0x18, 0x08, }, 3, 0, "", "",
"0f 18 08 \tprefetcht0 (%eax)",},
{{0x0f, 0x18, 0x10, }, 3, 0, "", "",
"0f 18 10 \tprefetcht1 (%eax)",},
{{0x0f, 0x18, 0x18, }, 3, 0, "", "",
"0f 18 18 \tprefetcht2 (%eax)",},
{{0x0f, 0x18, 0x00, }, 3, 0, "", "",
"0f 18 00 \tprefetchnta (%eax)",},
{{0x0f, 0x01, 0xc6, }, 3, 0, "", "",
"0f 01 c6 \twrmsrns",},
{{0xf3, 0x0f, 0x3a, 0xf0, 0xc0, 0x00, }, 6, 0, "", "",
"f3 0f 3a f0 c0 00 \threset $0x0",},
{{0x0f, 0x01, 0xe8, }, 3, 0, "", "",
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment