This is an archive of the discontinued LLVM Phabricator instance.

MIPS64r6 Relocation R_MIPS_PC18_S3
ClosedPublic

Authored by zoran.jovanovic on May 23 2014, 4:27 AM.

Details

Summary

Implemented relocation R_MIPS_PC18_S3.

Diff Detail

Repository
rL LLVM

Event Timeline

zoran.jovanovic retitled this revision from to MIPS64r6 Relocation R_MIPS_PC18_S3.
zoran.jovanovic updated this object.
zoran.jovanovic edited the test plan for this revision. (Show Details)
zoran.jovanovic added reviewers: dsanders, vmedic.
zoran.jovanovic added a subscriber: jkolek.
dsanders added inline comments.May 29 2014, 2:20 AM
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
107 ↗(On Diff #9748)

The S3 means 'right shift by 3' so this should be either '>> 3' or '/ 8'.

246 ↗(On Diff #9748)

You need to update the big-endian table as well.

lib/Target/Mips/MipsInstrInfo.td
347 ↗(On Diff #9748)

See comments on D3866 about how there should only be one kind of immediate.

dsanders requested changes to this revision.Jun 2 2014, 2:40 AM
dsanders edited edge metadata.
This revision now requires changes to proceed.Jun 2 2014, 2:40 AM
zoran.jovanovic edited edge metadata.

Fixed reported issues from previous version.

dsanders accepted this revision.Jun 10 2014, 3:16 AM
dsanders edited edge metadata.

LGTM with a nit

lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
644 ↗(On Diff #10268)

The string says 'Lsl2' instead of 'Lsl3'

This revision is now accepted and ready to land.Jun 10 2014, 3:16 AM
zoran.jovanovic updated this revision to Diff 10389.

Closed by commit rL210908 (authored by zjovanovic).