Chandler is working changes that will loosen some of the range checks in SemaChecking to only be warning that can be disabled.
This patch adds explicit masking to avoid using the upper bits of immediates.
Paths
| Differential D48462
[X86] Update handling in CGBuiltin to be tolerant of out of range immediates. ClosedPublic Authored by craig.topper on Jun 21 2018, 4:04 PM.
Details Summary Chandler is working changes that will loosen some of the range checks in SemaChecking to only be warning that can be disabled. This patch adds explicit masking to avoid using the upper bits of immediates.
Diff Detail Event Timelinecraig.topper added inline comments.
This revision is now accepted and ready to land.Jun 21 2018, 4:32 PM
Revision Contents
Diff 152398 lib/CodeGen/CGBuiltin.cpp
test/CodeGen/avx-builtins.c
test/CodeGen/sse2-builtins.c
test/CodeGen/sse41-builtins.c
test/CodeGen/vector.c
|
This was just a place I notice where we could avoid explicitly creating the constant ourselves and rely on the other signature of CreateExtractElement.