HomePhabricator

[AArch64] Match FI+offset in STNP addressing mode.

Description

[AArch64] Match FI+offset in STNP addressing mode.

First, we need to teach isFrameOffsetLegal about STNP.
It already knew about the STP/LDP variants, but those were probably
never exercised, because it's only the load/store optimizer that
generates STP/LDP, and the only user of the method is frame lowering,
which runs earlier.
The STP/LDP cases were wrong: they didn't take into account the fact
that they return two results, not one, so the immediate offset will be
the 4th operand, not the 3rd.

Follow-up to r247234.

Details

Committed
abSep 9 2015, 6:54 PM
Parents
rL247235: [MC] Convert all the remaining tests from macho-dump to llvm-readobj.
Branches
Unknown
Tags
Unknown