-
Notifications
You must be signed in to change notification settings - Fork 1k
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
base: main
Are you sure you want to change the base?
Conversation
third_party/ngen/ngen.hpp
Outdated
@@ -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(); |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added invalid_address_mode_exception
, thanks!
28a906b
to
f3ceb3d
Compare
1348a74
to
30603e7
Compare
30603e7
to
6a4c000
Compare
Description
Check that
movi
src is indirect as required.Checklist
General
make test
andmake test_benchdnn_*
) pass locally for each commit?