-mcpu and -code-model tests were copied from similar ones in
LLD-ELF.
There doesn't seem to be an equivalent test for -mattr in LLD-ELF, so
I've verified our behavior by cribbing a test from
CodeGen/X86/recip-fastmath.ll.
Paths
| Differential D92912
[lld-macho] Add support for -mcpu, -mattr, -code-model in LTO ClosedPublic Authored by int3 on Dec 8 2020, 10:28 PM.
Details
Summary -mcpu and -code-model tests were copied from similar ones in There doesn't seem to be an equivalent test for -mattr in LLD-ELF, so
Diff Detail
Unit TestsFailed
Event TimelineHerald added subscribers: steven_wu, hiraditya, inglorion. · View Herald TranscriptDec 8 2020, 10:28 PM Comment Actions I wonder if there is a good way to enumerate the desired set of options (e.g. -O is currently missing), but I don't think that there have been too many attempts to flesh out the argument handling, so we can hold off on that until we find that we have had to do this a few times. This revision is now accepted and ready to land.Dec 9 2020, 8:28 AM Comment Actions
I think the .ll extension is pretty much only used for LTO test cases, so it seems a bit redundant to add another prefix...
I don't understand what you mean by "enumerate" here... could you elaborate? int3 retitled this revision from [lld-macho] Add support for -code-model in LTO to [lld-macho] Add support for -mcpu, -mattr, -code-model in LTO. Comment Actionsmerge other LTO diffs This revision was landed with ongoing or failed builds.Dec 10 2020, 3:58 PM Closed by commit rG29d3b0e47113: [lld-macho] Add support for -mcpu, -mattr, -code-model in LTO (authored by int3). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Looks like this breaks tests on mac and windows: http://45.33.8.238/mac/25017/step_10.txt
Revision Contents
Diff 310679 lld/MachO/Driver.cpp
lld/MachO/LTO.cpp
lld/MachO/Options.td
lld/test/MachO/codemodel.ll
lld/test/MachO/cpu-string.ll
lld/test/MachO/mattrs.ll
|