[PATCH] D30834: [x86] these aren't the undefs you're looking for (PR32176)

Sanjay Patel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 10 09:26:53 PST 2017


spatel created this revision.
Herald added a subscriber: mcrosier.

x86 has undef SSE/AVX intrinsics that should represent a bogus register operand. This is not the same as LLVM's undef value which can take on multiple bit patterns.

There are better solutions / follow-ups to this discussed here:
https://bugs.llvm.org/show_bug.cgi?id=32176
...but this should prevent miscompiles with a one-line code change.


https://reviews.llvm.org/D30834

Files:
  lib/CodeGen/CGBuiltin.cpp
  test/CodeGen/avx-builtins.c
  test/CodeGen/avx2-builtins.c
  test/CodeGen/avx512bw-builtins.c
  test/CodeGen/avx512dq-builtins.c
  test/CodeGen/avx512f-builtins.c
  test/CodeGen/avx512vl-builtins.c
  test/CodeGen/avx512vldq-builtins.c
  test/CodeGen/sse-builtins.c
  test/CodeGen/sse2-builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30834.91362.patch
Type: text/x-patch
Size: 49738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170310/51364273/attachment-0001.bin>


More information about the cfe-commits mailing list