llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[llvm-mca][x86] Add missing avx512fp16 instructions tests

Open RKSimon opened this issue 1 week ago • 6 comments

Add resources-avx512fp16.s and resources-avx512fp16vl.s to llvm-project\llvm\test\tools\llvm-mca\X86\Generic with tests for rr/rm/rb variants

resources-avx512.s, resources-avx512vl.s and resources-avx512bf16.s might be a good reference point

Consult the Intel SDM and search for AVX512_FP16 to find the relevant xmm/ymm/zmm instructions

RKSimon avatar Nov 26 '26 10:11 RKSimon

@llvm/issue-subscribers-backend-x86

Author: Simon Pilgrim (RKSimon)

Add resources-avx512fp16.s and resources-avx512fp16vl.s to llvm-project\llvm\test\tools\llvm-mca\X86\Generic with tests for rr/rm/rb variants

resource-avx512.s, resources-avx512vl.s and resources-avx512bf16.s might be a good reference point

Consult the Intel SDM and search for AVX512_FP16 to find the relevant xmm/ymm/zmm instructions

Hi!

This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:

  1. Check that no other contributor is working on this issue. If someone is assigned to the issue or claimed to be working on it, ping the person. After one week without a response, the assignee may be changed.
  2. Leave a comment indicating that you are working on the issue, or just create a pull request after following the steps below. Mention this issue in the description of the pull request.
  3. Fix the issue locally. Be aware that LLVM's AI policy forbids the use of AI tools to fix good first issues since it squanders a learning opportunity. Using LLMs to search and learn is permitted, since the goal is learning.
  4. Run the test suite locally. Remember that the subdirectories under test/ create fine-grained testing targets, so you can e.g. use make check-clang-ast to only run Clang's AST tests.
  5. Create a Git commit.
  6. Run git clang-format HEAD~1 to format your changes.
  7. Open a pull request to the upstream repository on GitHub. Detailed instructions can be found in GitHub's documentation. Mention this issue in the description of the pull request.

If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.

@llvm/issue-subscribers-good-first-issue

Author: Simon Pilgrim (RKSimon)

Add resources-avx512fp16.s and resources-avx512fp16vl.s to llvm-project\llvm\test\tools\llvm-mca\X86\Generic with tests for rr/rm/rb variants

resource-avx512.s, resources-avx512vl.s and resources-avx512bf16.s might be a good reference point

Consult the Intel SDM and search for AVX512_FP16 to find the relevant xmm/ymm/zmm instructions

@RKSimon I am working on this issue and will open a PR within a week

0xPaarth avatar Nov 26 '26 14:11 0xPaarth

@RKSimon I am working on this issue and will open a PR within a week

Cheers - please start an early draft PR if possible, even if it just has a few of the instructions - avx512fp16 looks to be a big ISA, so incremental additions to the PR might be easier

RKSimon avatar Nov 26 '26 14:11 RKSimon

@llvm/issue-subscribers-tools-llvm-mca

Author: Simon Pilgrim (RKSimon)

Add resources-avx512fp16.s and resources-avx512fp16vl.s to llvm-project\llvm\test\tools\llvm-mca\X86\Generic with tests for rr/rm/rb variants

resources-avx512.s, resources-avx512vl.s and resources-avx512bf16.s might be a good reference point

Consult the Intel SDM and search for AVX512_FP16 to find the relevant xmm/ymm/zmm instructions