This is an archive of the discontinued LLVM Phabricator instance.

[Sparc] Support relocatable expressions in the assembler
ClosedPublic

Authored by dcederman on May 29 2018, 1:17 AM.

Details

Summary

Allow assembler expressions to start with an identifier. This allows for expressions such as

b symbol + 4

and

mov symEnd - symStart, %g1

The patch builds upon https://reviews.llvm.org/D47136.

Diff Detail

Event Timeline

dcederman created this revision.May 29 2018, 1:17 AM
joerg accepted this revision.Feb 8 2021, 4:04 PM
joerg added a subscriber: joerg.

The test case needs to be resorted, so that the DOTEXPR test comes last, but otherwise this change works for me.

This revision is now accepted and ready to land.Feb 8 2021, 4:04 PM
dcederman updated this revision to Diff 322662.Feb 10 2021, 5:47 AM

Moved DOTEXPR tests to end of file
Changed objdump offsets from dec to hex

Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2021, 5:47 AM
Herald added a subscriber: hiraditya. · View Herald Transcript