This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add ADD tests for Thumb2 narrowing (nfc)
ClosedPublic

Authored by scott-0 on Jul 9 2015, 3:20 AM.

Details

Summary

Add missing tests. These already pass. Some actual fixes coming in later patches.

Diff Detail

Repository
rL LLVM

Event Timeline

scott-0 updated this revision to Diff 29307.Jul 9 2015, 3:20 AM
scott-0 retitled this revision from to [ARM] Add ADD tests for Thumb2 narrowing (nfc).
scott-0 updated this object.
scott-0 added a subscriber: llvm-commits.
rengolin added inline comments.Jul 9 2015, 3:31 AM
test/MC/ARM/thumb2-narrow-dp.ll
67 ↗(On Diff #29307)

Not testing for higher registers in T2/T3? Or conditional T2?

78 ↗(On Diff #29307)

Not testing T1/3/4? Conditionals?

Thanks for the review!

test/MC/ARM/thumb2-narrow-dp.ll
67 ↗(On Diff #29307)

I didn't include them because the 3-to-2 operand narrowing doesn't affect them. I'm happy to add them to make this file more complete. Hireg T2 and T3 are already tested in basic-thumb2-instructions.s (line 119+, hireg T2 and T3).

I can't find a test for conditional T2. I'm happy to add one, but I think it would fit best in same part of basic-thumb2-instructions.s.

78 ↗(On Diff #29307)

I can add some to basic-thumb2-instructions.s.

And, I'm happy to add them here, too, if you think that's best.

rengolin accepted this revision.Jul 9 2015, 6:22 AM
rengolin added a reviewer: rengolin.
rengolin added inline comments.
test/MC/ARM/thumb2-narrow-dp.ll
67 ↗(On Diff #29307)

No, that's ok. If you want, for completeness, you can add another commit later. This is related to 3-to-2 changes and should remain as such.

78 ↗(On Diff #29307)

Same here.

This revision is now accepted and ready to land.Jul 9 2015, 6:22 AM
This revision was automatically updated to reflect the committed changes.