Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

third_party: ngen: add movi src check #2471

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kealan-barbieri
Copy link
Contributor

Description

Check that movi src is indirect as required.

Checklist

General

  • Do all unit and benchdnn tests (make test and make test_benchdnn_*) pass locally for each commit?
  • Have you formatted the code using clang-format?

@kealan-barbieri kealan-barbieri added the platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel label Jan 21, 2025
@kealan-barbieri kealan-barbieri requested a review from a team as a code owner January 21, 2025 22:33
@github-actions github-actions bot removed the platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel label Jan 21, 2025
@@ -1947,6 +1947,9 @@ BinaryCodeGenerator<hw>::opX(Opcode op, DataType defaultType, const InstructionM

typename EncodingTag12Dispatch<hw>::tag tag;
Instruction12 i{};
#ifdef NGEN_SAFE
if (!src0.isIndirect()) throw grf_expected_exception();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grf_expected_exception doesn't have quite the right message for this situation... feel free to add a new exception type in ngen_core.hpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants