This is an archive of the discontinued LLVM Phabricator instance.

[MC][ELF] fix newly added test
ClosedPublic

Authored by nickdesaulniers on Oct 11 2018, 10:20 AM.

Details

Summary

Reland of

  • r344197 "[MC][ELF] compute entity size for explicit sections"
  • r344206 "[MC][ELF] Fix section_mergeable_size.ll"

after being reverted in r344278 due to build breakages from not
specifying a target triple.

Move test from test/CodeGen/Generic/ to test/MC/ELF/.
Add explicit target triple so we don't try to run
this test on non ELF targets.

Reported: https://reviews.llvm.org/D53056#1261707

Diff Detail

Repository
rL LLVM

Event Timeline

The failure in Arm had nothing to do with not being ELF, but the asm syntax was different.

.init.rodata,"aM",%progbits,4

instead of

.init.rodata,"aM",@progbits,4

A CHECK line like:

.init.rodata,"aM",{{.}}progbits,4

would probably work.

Oh, you've done that. The diff isn't clear.

Also, I don't think CodeGen/Generic is the right place. Why can't you just leave in MC/ELF with the new CHECK line?

but the asm syntax was different
Oh, you've done that. The diff isn't clear.

@MaskRay fixed this mistake of mine in r344206.

I don't think CodeGen/Generic is the right place. Why can't you just leave in MC/ELF with the new CHECK line?

I agree; note that phabricator has funny UI for a moved file that was then modified. Triple check the direction of the arrows (-->, <--); note how they flip for the modification.

NoQ added a subscriber: NoQ.Oct 11 2018, 11:50 AM

I reverted rL344197 and rL344206 in rL344278 because buildbots kept failing and it sounds like you're still discussing the details of how to fix this. Let's try to not keep buildbots red for more than a couple of hours because it masks other people's failures and quickly snowballs. Thx! And sry if you were actually about to commit the fix.

  • reland r344197
nickdesaulniers edited the summary of this revision. (Show Details)Oct 11 2018, 1:04 PM
rnk added inline comments.Oct 11 2018, 1:04 PM
test/MC/ELF/section_mergeable_size.ll
1 ↗(On Diff #169286)

This is an LLC test testing an implementation detail of lib/CodeGen/TargetLoweringObjectFile.cpp, which is not part of MC. It should probably be in llvm/test/CodeGen/X86.

  • move test from test/MC/ELF/ to test/CodeGen/X86/
nickdesaulniers marked an inline comment as done.Oct 11 2018, 1:07 PM
rnk accepted this revision.Oct 11 2018, 1:21 PM

lgtm

This revision is now accepted and ready to land.Oct 11 2018, 1:21 PM

Thanks @rnk for the review, @NoQ for the quick revert (I agree with the quick revert, clean landing policy). @fhahn can you test this for me on OSX to triple check? Any additional code review @rengolin ?

fhahn accepted this revision.Oct 12 2018, 6:29 AM

Thanks @rnk for the review, @NoQ for the quick revert (I agree with the quick revert, clean landing policy). @fhahn can you test this for me on OSX to triple check? Any additional code review @rengolin ?

This should be fine now, with the -linux- triple

This revision was automatically updated to reflect the committed changes.