These tests will form the base for upcoming patch for generating pseudo instructions for MLA/MAD/MLS/MSB at ISel.
This is also forms base for attempt made in D142656.
Differential D142998
[SVE][codegen] Add few more tests for MUL followed by ADD/SUB (NFC) sushgokh on Jan 31 2023, 10:45 AM. Authored by
Details These tests will form the base for upcoming patch for generating pseudo instructions for MLA/MAD/MLS/MSB at ISel. This is also forms base for attempt made in D142656.
Diff Detail Event Timeline
Comment Actions I think we need at least 3 patches:
So the above only deals with mad, and not with any mla -> mad changes. That's why I suggested to strip out any mla changes out of patches 1 and 2. If you want to make changes in this area, we will follow the same approach:
What do you think, makes sense? Comment Actions I tried seperating (1,2) and (3,4) as you say above. However, mla->mad is side effect of implementing (1) and this makes seperating (1) and (4) a difficult thing unless we introduce some hacks to do so Comment Actions Ok, I will need to understand better why we can't separate things. But I will go back to the other patch for that. Comment Actions Thanks for putting these tests in a precommit patch @sushgokh!
Comment Actions @paulwalker-arm adding test cases for
Comment Actions In truth I've ignored this patch whilst waiting on your other patch. My review comments on D142656 include the test file, which I'm recommending to follow the same structure as was used for the FMAs. Those being simple tests I'm happy for them to remain included with the patch that improves the isel. I think this patch can then be rebased on top of D142656 to clearly show the extra cases you care about. Comment Actions @paulwalker-arm As agreed in last comment for D142656,
So, to reiterate the line of action, Comment Actions Fair enough. Sorry for the misunderstanding.
Comment Actions A few recommended improvements but otherwise looks good.
|
Please name the tests after the expected resulting instruction, so mad in this case.