This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj][obj2yaml][Object][test] - Improve testing of relocation types.
ClosedPublic

Authored by grimar on Mar 5 2020, 6:07 AM.

Details

Summary

The intention was to remove the Object/X86/yaml-elf-x86-rel-broken.yaml test,
This test is at the wrong place and blocks D75608.

yaml-elf-x86-rel-broken.yaml was introduced in
rG892c6c86ea25dc97668ff1f1b7bf1108e85fa5ec to check that
yaml2obj can use an arbitrary Hex32 value as a relocation type.
We have tests that check the similar functionality.

I've improved them and removed the yaml-elf-x86-rel-broken.yaml

Diff Detail

Event Timeline

grimar created this revision.Mar 5 2020, 6:07 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: emaste. · View Herald Transcript
jhenderson accepted this revision.Mar 6 2020, 1:19 AM

Some nits. Otherwise, LGTM.

llvm/test/tools/obj2yaml/relocation-type.yaml
5

Probably should delete this and the similar blank lines after the later case comments in this and the other test. At the moment, it's not clear that it's tied to this test case.

47

noticable -> noticeable

llvm/test/tools/yaml2obj/ELF/relocation-type.yaml
10

You can get rid of the column names for the bits we aren't testing below.

31

noticeable

This revision is now accepted and ready to land.Mar 6 2020, 1:19 AM
This revision was automatically updated to reflect the committed changes.
grimar marked 4 inline comments as done.
llvm/test/tools/yaml2obj/ELF/relocation-type.yaml