[PATCH] [X86] replace vinsertf128 intrinsics with generic shuffles

Sanjay Patel spatel at rotateright.com
Thu Mar 5 15:24:56 PST 2015


Ah - I had looked at a problem where we accept a variable when only a constant is acceptable:
http://llvm.org/bugs/show_bug.cgi?id=21713

Not sure if that's still a bug.

In any case, patch updated:

1. Use macros.
2. Shuffle mask elements generated individually via selects.
3. More test cases added to confirm the that the masks are good.


http://reviews.llvm.org/D8088

Files:
  include/clang/Basic/BuiltinsX86.def
  lib/Headers/avxintrin.h
  lib/Sema/SemaChecking.cpp
  test/CodeGen/avx-shuffle-builtins.c
  test/CodeGen/builtins-x86.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8088.21319.patch
Type: text/x-patch
Size: 6259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150305/f4ebceea/attachment.bin>


More information about the cfe-commits mailing list