This is an archive of the discontinued LLVM Phabricator instance.

[ARM64] Add diagnostics for bitfield extract/insert instructions
ClosedPublic

Authored by bsmith on May 9 2014, 7:25 AM.

Details

Summary

Patch to add diagnostics for bitfield extract/insert instructions.

Unfortunately, since ARM64 models all these instructions as aliases, the checks need to be done at the time the alias is seen rather then during instruction validation as AArch4 does it, hence we need to extend some of the hacks a little. It is up for debate whether the bitfield instructions should be implemented in this manner, or whether they should be modeled as separate instructions. (Although perhaps for a different patch).

As with my previous patches, there is no testcase for this as it is part of the merge of MC/AArch64/basic-a64-diagnostics.s.

Diff Detail

Event Timeline

bsmith updated this revision to Diff 9261.May 9 2014, 7:25 AM
bsmith retitled this revision from to [ARM64] Add diagnostics for bitfield extract/insert instructions.
bsmith updated this object.
bsmith edited the test plan for this revision. (Show Details)
bsmith added a reviewer: t.p.northover.
bsmith set the repository for this revision to rL LLVM.
bsmith added a subscriber: Unknown Object (MLST).
t.p.northover edited edge metadata.May 12 2014, 2:47 AM

Hi Bradley,

This looks reasonable to me, at least for now.

As you say, there might be better ways to handle the bitfield instructions overall. Though I'm still not convinced AArch64 has this one any better. There are lots of pseudo-instructions there, which amount to something not much better.

Any cunning ideas you have...

Tim.

bsmith accepted this revision.May 12 2014, 3:54 AM
bsmith added a reviewer: bsmith.
This revision is now accepted and ready to land.May 12 2014, 3:54 AM
bsmith closed this revision.May 12 2014, 3:54 AM