[PATCH] D48280: lower cmp intrisics - remove two GCCBuiltins
Gabor Buella via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 19 03:25:22 PDT 2018
GBuella updated this revision to Diff 151885.
GBuella edited the summary of this revision.
GBuella added a comment.
Added `__builtin_ia32_cmpsd_mask` & `__builtin_ia32_cmpss_mask`.
https://reviews.llvm.org/D48280
Files:
include/llvm/IR/IntrinsicsX86.td
Index: include/llvm/IR/IntrinsicsX86.td
===================================================================
--- include/llvm/IR/IntrinsicsX86.td
+++ include/llvm/IR/IntrinsicsX86.td
@@ -208,7 +208,9 @@
// Comparison ops
let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
- def int_x86_sse_cmp_ss : GCCBuiltin<"__builtin_ia32_cmpss">,
+ // NOTE: These two comparison intrinsics are not used by clang as long as the
+ // distinction in signaling behaviour is not implemented.
+ def int_x86_sse_cmp_ss :
Intrinsic<[llvm_v4f32_ty], [llvm_v4f32_ty,
llvm_v4f32_ty, llvm_i8_ty], [IntrNoMem]>;
def int_x86_sse_cmp_ps :
@@ -314,7 +316,7 @@
// FP comparison ops
let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
- def int_x86_sse2_cmp_sd : GCCBuiltin<"__builtin_ia32_cmpsd">,
+ def int_x86_sse2_cmp_sd :
Intrinsic<[llvm_v2f64_ty], [llvm_v2f64_ty,
llvm_v2f64_ty, llvm_i8_ty], [IntrNoMem]>;
def int_x86_sse2_cmp_pd :
@@ -5517,6 +5519,8 @@
// Misc.
let TargetPrefix = "x86" in {
+ // NOTE: These comparison intrinsics are not used by clang as long as the
+ // distinction in signaling behaviour is not implemented.
def int_x86_avx512_mask_cmp_ps_512 :
Intrinsic<[llvm_v16i1_ty], [llvm_v16f32_ty, llvm_v16f32_ty,
llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
@@ -5537,11 +5541,9 @@
llvm_i32_ty], [IntrNoMem]>;
def int_x86_avx512_mask_cmp_ss :
- GCCBuiltin<"__builtin_ia32_cmpss_mask">,
Intrinsic<[llvm_i8_ty], [llvm_v4f32_ty, llvm_v4f32_ty,
llvm_i32_ty, llvm_i8_ty, llvm_i32_ty], [IntrNoMem]>;
def int_x86_avx512_mask_cmp_sd :
- GCCBuiltin<"__builtin_ia32_cmpsd_mask">,
Intrinsic<[llvm_i8_ty], [llvm_v2f64_ty, llvm_v2f64_ty,
llvm_i32_ty, llvm_i8_ty, llvm_i32_ty], [IntrNoMem]>;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48280.151885.patch
Type: text/x-patch
Size: 1999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180619/51cc9dc1/attachment.bin>
More information about the llvm-commits
mailing list