[PATCH] D21268: [x86] translate SSE packed FP comparison builtins to IR

Sanjay Patel via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 12 11:38:15 PDT 2016


spatel created this revision.
spatel added reviewers: craig.topper, RKSimon, ab.
spatel added a subscriber: cfe-commits.
Herald added a subscriber: mcrosier.

As noted in the code comment, a potential follow-on would be to remove the builtins themselves. Other than ord/unord, this already works as expected. Eg:
  typedef float v4sf __attribute__((__vector_size__(16)));
  v4sf fcmpgt(v4sf a, v4sf b) { return a > b; }

I'll link a patch for the corresponding LLVM codegen tests next. A follow-on for that side would be to auto-upgrade and remove the LLVM intrinsics.

http://reviews.llvm.org/D21268

Files:
  lib/CodeGen/CGBuiltin.cpp
  test/CodeGen/avx2-builtins.c
  test/CodeGen/sse-builtins.c
  test/CodeGen/sse2-builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21268.60473.patch
Type: text/x-patch
Size: 24998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160612/948e76fa/attachment-0001.bin>


More information about the cfe-commits mailing list