[PATCH] D16177: Adding missing intrinsics _cvtsh_ss and _cvtss_sh

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 20 21:52:26 PST 2016


craig.topper added inline comments.

================
Comment at: lib/Headers/f16cintrin.h:47
@@ -34,1 +46,3 @@
+
+
 #define _mm_cvtps_ph(a, imm) __extension__ ({ \
----------------
Can we do something like this to remove the last temporary?

#define _cvtss_sh(a, imm) __extension__ ({ \
  (unsigned short)((__v8hi)__builtin_ia32_vcvtps2ph((__v4sf){a, 0, 0, 0}, (imm))[0]); \
})


Repository:
  rL LLVM

http://reviews.llvm.org/D16177





More information about the cfe-commits mailing list