Jenkins asan+ubsan build failure / X86TargetLowering::LowerBUILD_VECTOR

Kaelyn Takata via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 15:02:27 PST 2015


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.

On Tue, Nov 24, 2015 at 1:20 PM, Kaelyn Takata <rikka at google.com> wrote:

> 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.
>
> On Tue, Nov 24, 2015 at 10:56 AM, Matthias Braun via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
>> Hi,
>>
>> the greendragon asan+ubsan build started failing:
>>
>> http://lab.llvm.org:8080/green/job/clang-stage2-cmake-RgSan_check/782/
>>
>> I believe this was triggered by r253952 "[X86][SSE] Detect AVG pattern
>> during instruction combine for SSE2/AVX2/AVX512BW."
>>
>> 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.
>>
>> - Matthias
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151124/7166b449/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-bitshift.patch
Type: text/x-patch
Size: 771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151124/7166b449/attachment.bin>


More information about the llvm-commits mailing list