<div dir="ltr">The following small patch fixes the asan error about the bit shift, but I'm not sure if it is the right thing to do or not. If it is, I'll commit it.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 24, 2015 at 1:20 PM, Kaelyn Takata <span dir="ltr"><<a href="mailto:rikka@google.com" target="_blank">rikka@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm encountering the same error in test/CodeGen/X86/avg.ll when running with asan enabled, due to a bit shift of 33 with a 32-bit integer.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 24, 2015 at 10:56 AM, Matthias Braun via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
the greendragon asan+ubsan build started failing:<br>
<br>
<a href="http://lab.llvm.org:8080/green/job/clang-stage2-cmake-RgSan_check/782/" rel="noreferrer" target="_blank">http://lab.llvm.org:8080/green/job/clang-stage2-cmake-RgSan_check/782/</a><br>
<br>
I believe this was triggered by r253952 "[X86][SSE] Detect AVG pattern during instruction combine for SSE2/AVX2/AVX512BW."<br>
<br>
Looking at the failure this seems to be an cause by an existing bug in X86TargetLowering::LowerBUILD_VECTOR() which uses an unsigned variable as a bitset with a bit for each vector element. The test added contains some "64 x XXX" vector types and overflows this.<br>
<br>
- Matthias<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>