<p dir="ltr">Test case?</p>
<div class="gmail_quote">On Apr 11, 2016 8:56 PM, "Mingjie Xing via llvm-dev" <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I run into a problem that llvm can't write the correct ELFHeaderEFlags<br>
for hexagonv4. The following patch can fix it.<br>
<br>
Index: lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp<br>
===================================================================<br>
--- lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp (revision 265917)<br>
+++ lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp (working copy)<br>
@@ -122,7 +122,7 @@<br>
: HexagonTargetStreamer(S) {<br>
auto Bits = STI.getFeatureBits();<br>
unsigned Flags;<br>
- if (Bits.to_ullong() & llvm::Hexagon::ArchV5)<br>
+ if (Bits[Hexagon::ArchV5])<br>
Flags = ELF::EF_HEXAGON_MACH_V5;<br>
else<br>
Flags = ELF::EF_HEXAGON_MACH_V4;<br>
<br>
Maybe hexagon port maintainer has a better solution to handle<br>
Hexagon::ArchV60 etc.<br>
<br>
<br>
Best regards,<br>
Mingjie<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>