This is an archive of the discontinued LLVM Phabricator instance.

Add missing tests for build attribute encodings in object files.
ClosedPublic

Authored by chatur01 on Nov 3 2014, 9:33 AM.

Details

Reviewers
t.p.northover
Summary

test/MC/ARM/directive-eabi_attribute.s was missing several tests of object file encodings relative to the existing tests for assembly file encodings. This commit adds the missing tests.

There is a small wrinkle adding object file tests for the following pair of assembly file tests,

	.eabi_attribute Tag_compatibility, 1
@ CHECK: .eabi_attribute 32, 1
	.eabi_attribute Tag_compatibility, 1, "aeabi"
@ CHECK: .eabi_attribute 32, 1, "aeabi"

because the object file encoder removes duplicate build attrs (delete all but the first occurrence AFAICT), whereas the assembly encoder does allow duplicate attrs. The object file test I used for the second of the above build attributes does cover both code paths, so it tests the same code as the pair of tests above.

Diff Detail

Event Timeline

chatur01 retitled this revision from to Add missing tests for build attribute encodings in object files..
chatur01 updated this object.
chatur01 edited the test plan for this revision. (Show Details)
chatur01 set the repository for this revision to rL LLVM.
chatur01 added a subscriber: Unknown Object (MLST).
t.p.northover accepted this revision.Nov 3 2014, 1:56 PM
t.p.northover added a reviewer: t.p.northover.
t.p.northover added a subscriber: t.p.northover.

Hi Charlie,

Thanks for doing this, looks like an obvious enough change to me!

Tim.

This revision is now accepted and ready to land.Nov 3 2014, 1:56 PM

Hi Tim,

Thanks for doing this, looks like an obvious enough change to me!

Thank you for the review :) -- committed as r221250.

Charlie.