[PATCH] D48462: [X86] Update handling in CGBuiltin to be tolerant of out of range immediates.

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 21 16:04:38 PDT 2018


craig.topper created this revision.
craig.topper added reviewers: chandlerc, RKSimon, spatel.

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.


https://reviews.llvm.org/D48462

Files:
  lib/CodeGen/CGBuiltin.cpp
  test/CodeGen/avx-builtins.c
  test/CodeGen/sse2-builtins.c
  test/CodeGen/sse41-builtins.c
  test/CodeGen/vector.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48462.152398.patch
Type: text/x-patch
Size: 11610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180621/afee176e/attachment-0001.bin>


More information about the cfe-commits mailing list