This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Merge the 12bit constant address into the offset field of the instruction
ClosedPublic

Authored by gonglingqin on Feb 7 2023, 12:19 AM.

Details

Summary

There are 12bit offset fields in the ld.[b/h/w/d] and st.[b/h/w/d].
When the constant address is less than 12 bits, the address
calculation is incorporated into the offset field of the instruction.

Diff Detail

Event Timeline

gonglingqin created this revision.Feb 7 2023, 12:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2023, 12:19 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
gonglingqin requested review of this revision.Feb 7 2023, 12:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2023, 12:19 AM
xen0n accepted this revision.Feb 7 2023, 12:34 AM

Seems good; you could rewrite these tests in opaque pointers afterwards as well.

This revision is now accepted and ready to land.Feb 7 2023, 12:34 AM

Seems good; you could rewrite these tests in opaque pointers afterwards as well.

Thank you for your review! I will modify the test.

Update tests to use opaque pointers.