2015-12-21 22:40:36 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s --check-prefix=ALL --check-prefix=KNL
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=skx | FileCheck %s --check-prefix=ALL --check-prefix=SKX
|
|
|
|
|
2014-12-13 01:02:18 +08:00
|
|
|
|
|
|
|
define <16 x i32> @vpandd(<16 x i32> %a, <16 x i32> %b) nounwind uwtable readnone ssp {
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-LABEL: vpandd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: ## %bb.0: ## %entry
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: vpaddd {{.*}}(%rip){1to16}, %zmm0, %zmm0
|
2018-10-27 01:21:26 +08:00
|
|
|
; ALL-NEXT: vpandd %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
entry:
|
|
|
|
; Force the execution domain with an add.
|
2017-06-18 22:45:23 +08:00
|
|
|
%a2 = add <16 x i32> %a, <i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2,
|
|
|
|
i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2>
|
2014-12-13 01:02:18 +08:00
|
|
|
%x = and <16 x i32> %a2, %b
|
|
|
|
ret <16 x i32> %x
|
|
|
|
}
|
|
|
|
|
2016-07-11 13:36:53 +08:00
|
|
|
define <16 x i32> @vpandnd(<16 x i32> %a, <16 x i32> %b) nounwind uwtable readnone ssp {
|
|
|
|
; ALL-LABEL: vpandnd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: ## %bb.0: ## %entry
|
2016-07-11 13:36:53 +08:00
|
|
|
; ALL-NEXT: vpaddd {{.*}}(%rip){1to16}, %zmm0, %zmm0
|
2018-10-27 01:21:26 +08:00
|
|
|
; ALL-NEXT: vpandnd %zmm0, %zmm1, %zmm0
|
2016-07-11 13:36:53 +08:00
|
|
|
; ALL-NEXT: retq
|
|
|
|
entry:
|
|
|
|
; Force the execution domain with an add.
|
2017-06-18 22:45:23 +08:00
|
|
|
%a2 = add <16 x i32> %a, <i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3,
|
|
|
|
i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3>
|
2016-07-11 13:36:53 +08:00
|
|
|
%b2 = xor <16 x i32> %b, <i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1,
|
|
|
|
i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>
|
|
|
|
%x = and <16 x i32> %a2, %b2
|
|
|
|
ret <16 x i32> %x
|
|
|
|
}
|
|
|
|
|
2014-12-13 01:02:18 +08:00
|
|
|
define <16 x i32> @vpord(<16 x i32> %a, <16 x i32> %b) nounwind uwtable readnone ssp {
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-LABEL: vpord:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: ## %bb.0: ## %entry
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: vpaddd {{.*}}(%rip){1to16}, %zmm0, %zmm0
|
2018-10-27 01:21:26 +08:00
|
|
|
; ALL-NEXT: vpord %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
entry:
|
|
|
|
; Force the execution domain with an add.
|
2017-06-18 22:45:23 +08:00
|
|
|
%a2 = add <16 x i32> %a, <i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4,
|
|
|
|
i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4>
|
2014-12-13 01:02:18 +08:00
|
|
|
%x = or <16 x i32> %a2, %b
|
|
|
|
ret <16 x i32> %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i32> @vpxord(<16 x i32> %a, <16 x i32> %b) nounwind uwtable readnone ssp {
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-LABEL: vpxord:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: ## %bb.0: ## %entry
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: vpaddd {{.*}}(%rip){1to16}, %zmm0, %zmm0
|
2018-10-27 01:21:26 +08:00
|
|
|
; ALL-NEXT: vpxord %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
entry:
|
|
|
|
; Force the execution domain with an add.
|
2017-06-18 22:45:23 +08:00
|
|
|
%a2 = add <16 x i32> %a, <i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5,
|
|
|
|
i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5>
|
2014-12-13 01:02:18 +08:00
|
|
|
%x = xor <16 x i32> %a2, %b
|
|
|
|
ret <16 x i32> %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i64> @vpandq(<8 x i64> %a, <8 x i64> %b) nounwind uwtable readnone ssp {
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-LABEL: vpandq:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: ## %bb.0: ## %entry
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: vpaddq {{.*}}(%rip){1to8}, %zmm0, %zmm0
|
|
|
|
; ALL-NEXT: vpandq %zmm1, %zmm0, %zmm0
|
|
|
|
; ALL-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
entry:
|
|
|
|
; Force the execution domain with an add.
|
2017-06-18 22:45:23 +08:00
|
|
|
%a2 = add <8 x i64> %a, <i64 6, i64 6, i64 6, i64 6, i64 6, i64 6, i64 6, i64 6>
|
2014-12-13 01:02:18 +08:00
|
|
|
%x = and <8 x i64> %a2, %b
|
|
|
|
ret <8 x i64> %x
|
|
|
|
}
|
|
|
|
|
2016-07-11 13:36:53 +08:00
|
|
|
define <8 x i64> @vpandnq(<8 x i64> %a, <8 x i64> %b) nounwind uwtable readnone ssp {
|
|
|
|
; ALL-LABEL: vpandnq:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: ## %bb.0: ## %entry
|
2016-07-11 13:36:53 +08:00
|
|
|
; ALL-NEXT: vpaddq {{.*}}(%rip){1to8}, %zmm0, %zmm0
|
|
|
|
; ALL-NEXT: vpandnq %zmm0, %zmm1, %zmm0
|
|
|
|
; ALL-NEXT: retq
|
|
|
|
entry:
|
|
|
|
; Force the execution domain with an add.
|
2017-06-18 22:45:23 +08:00
|
|
|
%a2 = add <8 x i64> %a, <i64 7, i64 7, i64 7, i64 7, i64 7, i64 7, i64 7, i64 7>
|
2016-07-11 13:36:53 +08:00
|
|
|
%b2 = xor <8 x i64> %b, <i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1>
|
|
|
|
%x = and <8 x i64> %a2, %b2
|
|
|
|
ret <8 x i64> %x
|
|
|
|
}
|
|
|
|
|
2014-12-13 01:02:18 +08:00
|
|
|
define <8 x i64> @vporq(<8 x i64> %a, <8 x i64> %b) nounwind uwtable readnone ssp {
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-LABEL: vporq:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: ## %bb.0: ## %entry
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: vpaddq {{.*}}(%rip){1to8}, %zmm0, %zmm0
|
|
|
|
; ALL-NEXT: vporq %zmm1, %zmm0, %zmm0
|
|
|
|
; ALL-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
entry:
|
|
|
|
; Force the execution domain with an add.
|
2017-06-18 22:45:23 +08:00
|
|
|
%a2 = add <8 x i64> %a, <i64 8, i64 8, i64 8, i64 8, i64 8, i64 8, i64 8, i64 8>
|
2014-12-13 01:02:18 +08:00
|
|
|
%x = or <8 x i64> %a2, %b
|
|
|
|
ret <8 x i64> %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i64> @vpxorq(<8 x i64> %a, <8 x i64> %b) nounwind uwtable readnone ssp {
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-LABEL: vpxorq:
|
2017-12-05 01:18:51 +08:00
|
|
|
; ALL: ## %bb.0: ## %entry
|
2015-12-21 22:40:36 +08:00
|
|
|
; ALL-NEXT: vpaddq {{.*}}(%rip){1to8}, %zmm0, %zmm0
|
|
|
|
; ALL-NEXT: vpxorq %zmm1, %zmm0, %zmm0
|
|
|
|
; ALL-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
entry:
|
|
|
|
; Force the execution domain with an add.
|
2017-06-18 22:45:23 +08:00
|
|
|
%a2 = add <8 x i64> %a, <i64 9, i64 9, i64 9, i64 9, i64 9, i64 9, i64 9, i64 9>
|
2014-12-13 01:02:18 +08:00
|
|
|
%x = xor <8 x i64> %a2, %b
|
|
|
|
ret <8 x i64> %x
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
define <8 x i64> @orq_broadcast(<8 x i64> %a) nounwind {
|
2016-09-02 13:29:09 +08:00
|
|
|
; KNL-LABEL: orq_broadcast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-09-02 13:29:09 +08:00
|
|
|
; KNL-NEXT: vporq {{.*}}(%rip){1to8}, %zmm0, %zmm0
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: orq_broadcast:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-09-02 13:29:09 +08:00
|
|
|
; SKX-NEXT: vorpd {{.*}}(%rip){1to8}, %zmm0, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
%b = or <8 x i64> %a, <i64 2, i64 2, i64 2, i64 2, i64 2, i64 2, i64 2, i64 2>
|
|
|
|
ret <8 x i64> %b
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i32> @andd512fold(<16 x i32> %y, <16 x i32>* %x) {
|
2016-08-01 15:55:33 +08:00
|
|
|
; KNL-LABEL: andd512fold:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2018-10-27 01:21:26 +08:00
|
|
|
; KNL-NEXT: vpandd (%rdi), %zmm0, %zmm0
|
2016-08-01 15:55:33 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: andd512fold:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2016-08-01 15:55:33 +08:00
|
|
|
; SKX-NEXT: vandps (%rdi), %zmm0, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
entry:
|
2015-02-28 05:17:42 +08:00
|
|
|
%a = load <16 x i32>, <16 x i32>* %x, align 4
|
2014-12-13 01:02:18 +08:00
|
|
|
%b = and <16 x i32> %y, %a
|
|
|
|
ret <16 x i32> %b
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i64> @andqbrst(<8 x i64> %p1, i64* %ap) {
|
2016-09-02 13:29:09 +08:00
|
|
|
; KNL-LABEL: andqbrst:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-09-02 13:29:09 +08:00
|
|
|
; KNL-NEXT: vpandq (%rdi){1to8}, %zmm0, %zmm0
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: andqbrst:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2016-09-02 13:29:09 +08:00
|
|
|
; SKX-NEXT: vandpd (%rdi){1to8}, %zmm0, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
2014-12-13 01:02:18 +08:00
|
|
|
entry:
|
2015-02-28 05:17:42 +08:00
|
|
|
%a = load i64, i64* %ap, align 8
|
2014-12-13 01:02:18 +08:00
|
|
|
%b = insertelement <8 x i64> undef, i64 %a, i32 0
|
|
|
|
%c = shufflevector <8 x i64> %b, <8 x i64> undef, <8 x i32> zeroinitializer
|
|
|
|
%d = and <8 x i64> %p1, %c
|
|
|
|
ret <8 x i64>%d
|
|
|
|
}
|
2015-12-21 22:40:36 +08:00
|
|
|
|
|
|
|
define <64 x i8> @and_v64i8(<64 x i8> %a, <64 x i8> %b) {
|
|
|
|
; KNL-LABEL: and_v64i8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2015-12-21 22:40:36 +08:00
|
|
|
; KNL-NEXT: vandps %ymm2, %ymm0, %ymm0
|
|
|
|
; KNL-NEXT: vandps %ymm3, %ymm1, %ymm1
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: and_v64i8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-07-22 13:00:52 +08:00
|
|
|
; SKX-NEXT: vandps %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
%res = and <64 x i8> %a, %b
|
|
|
|
ret <64 x i8> %res
|
|
|
|
}
|
|
|
|
|
2016-07-11 13:36:53 +08:00
|
|
|
define <64 x i8> @andn_v64i8(<64 x i8> %a, <64 x i8> %b) {
|
|
|
|
; KNL-LABEL: andn_v64i8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-07-11 13:36:53 +08:00
|
|
|
; KNL-NEXT: vandnps %ymm0, %ymm2, %ymm0
|
|
|
|
; KNL-NEXT: vandnps %ymm1, %ymm3, %ymm1
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: andn_v64i8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-07-22 13:00:52 +08:00
|
|
|
; SKX-NEXT: vandnps %zmm0, %zmm1, %zmm0
|
2016-07-11 13:36:53 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
%b2 = xor <64 x i8> %b, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1,
|
|
|
|
i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1,
|
|
|
|
i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1,
|
|
|
|
i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
|
|
|
|
%res = and <64 x i8> %a, %b2
|
|
|
|
ret <64 x i8> %res
|
|
|
|
}
|
|
|
|
|
2015-12-21 22:40:36 +08:00
|
|
|
define <64 x i8> @or_v64i8(<64 x i8> %a, <64 x i8> %b) {
|
|
|
|
; KNL-LABEL: or_v64i8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2015-12-21 22:40:36 +08:00
|
|
|
; KNL-NEXT: vorps %ymm2, %ymm0, %ymm0
|
|
|
|
; KNL-NEXT: vorps %ymm3, %ymm1, %ymm1
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: or_v64i8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-07-22 13:00:52 +08:00
|
|
|
; SKX-NEXT: vorps %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
%res = or <64 x i8> %a, %b
|
|
|
|
ret <64 x i8> %res
|
|
|
|
}
|
|
|
|
|
|
|
|
define <64 x i8> @xor_v64i8(<64 x i8> %a, <64 x i8> %b) {
|
|
|
|
; KNL-LABEL: xor_v64i8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2015-12-21 22:40:36 +08:00
|
|
|
; KNL-NEXT: vxorps %ymm2, %ymm0, %ymm0
|
|
|
|
; KNL-NEXT: vxorps %ymm3, %ymm1, %ymm1
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: xor_v64i8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-07-22 13:00:52 +08:00
|
|
|
; SKX-NEXT: vxorps %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
%res = xor <64 x i8> %a, %b
|
|
|
|
ret <64 x i8> %res
|
|
|
|
}
|
|
|
|
|
|
|
|
define <32 x i16> @and_v32i16(<32 x i16> %a, <32 x i16> %b) {
|
|
|
|
; KNL-LABEL: and_v32i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2015-12-21 22:40:36 +08:00
|
|
|
; KNL-NEXT: vandps %ymm2, %ymm0, %ymm0
|
|
|
|
; KNL-NEXT: vandps %ymm3, %ymm1, %ymm1
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: and_v32i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-07-22 13:00:52 +08:00
|
|
|
; SKX-NEXT: vandps %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
%res = and <32 x i16> %a, %b
|
|
|
|
ret <32 x i16> %res
|
|
|
|
}
|
|
|
|
|
2016-07-11 13:36:53 +08:00
|
|
|
define <32 x i16> @andn_v32i16(<32 x i16> %a, <32 x i16> %b) {
|
|
|
|
; KNL-LABEL: andn_v32i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-07-11 13:36:53 +08:00
|
|
|
; KNL-NEXT: vandnps %ymm0, %ymm2, %ymm0
|
|
|
|
; KNL-NEXT: vandnps %ymm1, %ymm3, %ymm1
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: andn_v32i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-07-22 13:00:52 +08:00
|
|
|
; SKX-NEXT: vandnps %zmm0, %zmm1, %zmm0
|
2016-07-11 13:36:53 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
%b2 = xor <32 x i16> %b, <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1,
|
|
|
|
i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1>
|
|
|
|
%res = and <32 x i16> %a, %b2
|
|
|
|
ret <32 x i16> %res
|
|
|
|
}
|
|
|
|
|
2015-12-21 22:40:36 +08:00
|
|
|
define <32 x i16> @or_v32i16(<32 x i16> %a, <32 x i16> %b) {
|
|
|
|
; KNL-LABEL: or_v32i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2015-12-21 22:40:36 +08:00
|
|
|
; KNL-NEXT: vorps %ymm2, %ymm0, %ymm0
|
|
|
|
; KNL-NEXT: vorps %ymm3, %ymm1, %ymm1
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: or_v32i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-07-22 13:00:52 +08:00
|
|
|
; SKX-NEXT: vorps %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
%res = or <32 x i16> %a, %b
|
|
|
|
ret <32 x i16> %res
|
|
|
|
}
|
|
|
|
|
|
|
|
define <32 x i16> @xor_v32i16(<32 x i16> %a, <32 x i16> %b) {
|
|
|
|
; KNL-LABEL: xor_v32i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2015-12-21 22:40:36 +08:00
|
|
|
; KNL-NEXT: vxorps %ymm2, %ymm0, %ymm0
|
|
|
|
; KNL-NEXT: vxorps %ymm3, %ymm1, %ymm1
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: xor_v32i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2016-07-22 13:00:52 +08:00
|
|
|
; SKX-NEXT: vxorps %zmm1, %zmm0, %zmm0
|
2015-12-21 22:40:36 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
%res = xor <32 x i16> %a, %b
|
|
|
|
ret <32 x i16> %res
|
|
|
|
}
|
2016-08-09 13:26:07 +08:00
|
|
|
|
|
|
|
define <16 x float> @masked_and_v16f32(<16 x float> %a, <16 x float> %b, <16 x float> %passThru, i16 %mask, <16 x float> %c) {
|
|
|
|
; KNL-LABEL: masked_and_v16f32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-08-09 13:26:07 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpandd %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; KNL-NEXT: vaddps %zmm2, %zmm3, %zmm0
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: masked_and_v16f32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-09 13:26:07 +08:00
|
|
|
; SKX-NEXT: vandps %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; SKX-NEXT: vaddps %zmm2, %zmm3, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
|
|
|
%a1 = bitcast <16 x float> %a to <16 x i32>
|
|
|
|
%b1 = bitcast <16 x float> %b to <16 x i32>
|
|
|
|
%passThru1 = bitcast <16 x float> %passThru to <16 x i32>
|
|
|
|
%mask1 = bitcast i16 %mask to <16 x i1>
|
|
|
|
%op = and <16 x i32> %a1, %b1
|
|
|
|
%select = select <16 x i1> %mask1, <16 x i32> %op, <16 x i32> %passThru1
|
|
|
|
%cast = bitcast <16 x i32> %select to <16 x float>
|
|
|
|
%add = fadd <16 x float> %c, %cast
|
|
|
|
ret <16 x float> %add
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @masked_or_v16f32(<16 x float> %a, <16 x float> %b, <16 x float> %passThru, i16 %mask, <16 x float> %c) {
|
|
|
|
; KNL-LABEL: masked_or_v16f32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-08-09 13:26:07 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpandd %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; KNL-NEXT: vaddps %zmm2, %zmm3, %zmm0
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: masked_or_v16f32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-09 13:26:07 +08:00
|
|
|
; SKX-NEXT: vandps %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; SKX-NEXT: vaddps %zmm2, %zmm3, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
|
|
|
%a1 = bitcast <16 x float> %a to <16 x i32>
|
|
|
|
%b1 = bitcast <16 x float> %b to <16 x i32>
|
|
|
|
%passThru1 = bitcast <16 x float> %passThru to <16 x i32>
|
|
|
|
%mask1 = bitcast i16 %mask to <16 x i1>
|
|
|
|
%op = and <16 x i32> %a1, %b1
|
|
|
|
%select = select <16 x i1> %mask1, <16 x i32> %op, <16 x i32> %passThru1
|
|
|
|
%cast = bitcast <16 x i32> %select to <16 x float>
|
|
|
|
%add = fadd <16 x float> %c, %cast
|
|
|
|
ret <16 x float> %add
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @masked_xor_v16f32(<16 x float> %a, <16 x float> %b, <16 x float> %passThru, i16 %mask, <16 x float> %c) {
|
|
|
|
; KNL-LABEL: masked_xor_v16f32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-08-09 13:26:07 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpandd %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; KNL-NEXT: vaddps %zmm2, %zmm3, %zmm0
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: masked_xor_v16f32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-09 13:26:07 +08:00
|
|
|
; SKX-NEXT: vandps %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; SKX-NEXT: vaddps %zmm2, %zmm3, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
|
|
|
%a1 = bitcast <16 x float> %a to <16 x i32>
|
|
|
|
%b1 = bitcast <16 x float> %b to <16 x i32>
|
|
|
|
%passThru1 = bitcast <16 x float> %passThru to <16 x i32>
|
|
|
|
%mask1 = bitcast i16 %mask to <16 x i1>
|
|
|
|
%op = and <16 x i32> %a1, %b1
|
|
|
|
%select = select <16 x i1> %mask1, <16 x i32> %op, <16 x i32> %passThru1
|
|
|
|
%cast = bitcast <16 x i32> %select to <16 x float>
|
|
|
|
%add = fadd <16 x float> %c, %cast
|
|
|
|
ret <16 x float> %add
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @masked_and_v8f64(<8 x double> %a, <8 x double> %b, <8 x double> %passThru, i8 %mask, <8 x double> %c) {
|
|
|
|
; KNL-LABEL: masked_and_v8f64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-08-09 13:26:07 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpandq %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; KNL-NEXT: vaddpd %zmm2, %zmm3, %zmm0
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: masked_and_v8f64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-09 13:26:07 +08:00
|
|
|
; SKX-NEXT: vandpd %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; SKX-NEXT: vaddpd %zmm2, %zmm3, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
|
|
|
%a1 = bitcast <8 x double> %a to <8 x i64>
|
|
|
|
%b1 = bitcast <8 x double> %b to <8 x i64>
|
|
|
|
%passThru1 = bitcast <8 x double> %passThru to <8 x i64>
|
|
|
|
%mask1 = bitcast i8 %mask to <8 x i1>
|
|
|
|
%op = and <8 x i64> %a1, %b1
|
|
|
|
%select = select <8 x i1> %mask1, <8 x i64> %op, <8 x i64> %passThru1
|
|
|
|
%cast = bitcast <8 x i64> %select to <8 x double>
|
|
|
|
%add = fadd <8 x double> %c, %cast
|
|
|
|
ret <8 x double> %add
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @masked_or_v8f64(<8 x double> %a, <8 x double> %b, <8 x double> %passThru, i8 %mask, <8 x double> %c) {
|
|
|
|
; KNL-LABEL: masked_or_v8f64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-08-09 13:26:07 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpandq %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; KNL-NEXT: vaddpd %zmm2, %zmm3, %zmm0
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: masked_or_v8f64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-09 13:26:07 +08:00
|
|
|
; SKX-NEXT: vandpd %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; SKX-NEXT: vaddpd %zmm2, %zmm3, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
|
|
|
%a1 = bitcast <8 x double> %a to <8 x i64>
|
|
|
|
%b1 = bitcast <8 x double> %b to <8 x i64>
|
|
|
|
%passThru1 = bitcast <8 x double> %passThru to <8 x i64>
|
|
|
|
%mask1 = bitcast i8 %mask to <8 x i1>
|
|
|
|
%op = and <8 x i64> %a1, %b1
|
|
|
|
%select = select <8 x i1> %mask1, <8 x i64> %op, <8 x i64> %passThru1
|
|
|
|
%cast = bitcast <8 x i64> %select to <8 x double>
|
|
|
|
%add = fadd <8 x double> %c, %cast
|
|
|
|
ret <8 x double> %add
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @masked_xor_v8f64(<8 x double> %a, <8 x double> %b, <8 x double> %passThru, i8 %mask, <8 x double> %c) {
|
|
|
|
; KNL-LABEL: masked_xor_v8f64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0:
|
2016-08-09 13:26:07 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpandq %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; KNL-NEXT: vaddpd %zmm2, %zmm3, %zmm0
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: masked_xor_v8f64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0:
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-09 13:26:07 +08:00
|
|
|
; SKX-NEXT: vandpd %zmm1, %zmm0, %zmm2 {%k1}
|
|
|
|
; SKX-NEXT: vaddpd %zmm2, %zmm3, %zmm0
|
|
|
|
; SKX-NEXT: retq
|
|
|
|
%a1 = bitcast <8 x double> %a to <8 x i64>
|
|
|
|
%b1 = bitcast <8 x double> %b to <8 x i64>
|
|
|
|
%passThru1 = bitcast <8 x double> %passThru to <8 x i64>
|
|
|
|
%mask1 = bitcast i8 %mask to <8 x i1>
|
|
|
|
%op = and <8 x i64> %a1, %b1
|
|
|
|
%select = select <8 x i1> %mask1, <8 x i64> %op, <8 x i64> %passThru1
|
|
|
|
%cast = bitcast <8 x i64> %select to <8 x double>
|
|
|
|
%add = fadd <8 x double> %c, %cast
|
|
|
|
ret <8 x double> %add
|
|
|
|
}
|
2016-08-28 14:06:24 +08:00
|
|
|
|
|
|
|
define <8 x i64> @test_mm512_mask_and_epi32(<8 x i64> %__src, i16 zeroext %__k, <8 x i64> %__a, <8 x i64> %__b) {
|
2016-08-28 14:06:28 +08:00
|
|
|
; KNL-LABEL: test_mm512_mask_and_epi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-28 14:06:28 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpandd %zmm2, %zmm1, %zmm0 {%k1}
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_and_epi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-28 14:06:28 +08:00
|
|
|
; SKX-NEXT: vandps %zmm2, %zmm1, %zmm0 {%k1}
|
|
|
|
; SKX-NEXT: retq
|
2016-08-28 14:06:24 +08:00
|
|
|
entry:
|
|
|
|
%and1.i.i = and <8 x i64> %__a, %__b
|
|
|
|
%0 = bitcast <8 x i64> %and1.i.i to <16 x i32>
|
|
|
|
%1 = bitcast <8 x i64> %__src to <16 x i32>
|
|
|
|
%2 = bitcast i16 %__k to <16 x i1>
|
|
|
|
%3 = select <16 x i1> %2, <16 x i32> %0, <16 x i32> %1
|
|
|
|
%4 = bitcast <16 x i32> %3 to <8 x i64>
|
|
|
|
ret <8 x i64> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i64> @test_mm512_mask_or_epi32(<8 x i64> %__src, i16 zeroext %__k, <8 x i64> %__a, <8 x i64> %__b) {
|
2016-08-28 14:06:28 +08:00
|
|
|
; KNL-LABEL: test_mm512_mask_or_epi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-28 14:06:28 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpord %zmm2, %zmm1, %zmm0 {%k1}
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_or_epi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-28 14:06:28 +08:00
|
|
|
; SKX-NEXT: vorps %zmm2, %zmm1, %zmm0 {%k1}
|
|
|
|
; SKX-NEXT: retq
|
2016-08-28 14:06:24 +08:00
|
|
|
entry:
|
|
|
|
%or1.i.i = or <8 x i64> %__a, %__b
|
|
|
|
%0 = bitcast <8 x i64> %or1.i.i to <16 x i32>
|
|
|
|
%1 = bitcast <8 x i64> %__src to <16 x i32>
|
|
|
|
%2 = bitcast i16 %__k to <16 x i1>
|
|
|
|
%3 = select <16 x i1> %2, <16 x i32> %0, <16 x i32> %1
|
|
|
|
%4 = bitcast <16 x i32> %3 to <8 x i64>
|
|
|
|
ret <8 x i64> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i64> @test_mm512_mask_xor_epi32(<8 x i64> %__src, i16 zeroext %__k, <8 x i64> %__a, <8 x i64> %__b) {
|
2016-08-28 14:06:28 +08:00
|
|
|
; KNL-LABEL: test_mm512_mask_xor_epi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-28 14:06:28 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
|
|
|
; KNL-NEXT: vpxord %zmm2, %zmm1, %zmm0 {%k1}
|
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_xor_epi32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-28 14:06:28 +08:00
|
|
|
; SKX-NEXT: vxorps %zmm2, %zmm1, %zmm0 {%k1}
|
|
|
|
; SKX-NEXT: retq
|
2016-08-28 14:06:24 +08:00
|
|
|
entry:
|
|
|
|
%xor1.i.i = xor <8 x i64> %__a, %__b
|
|
|
|
%0 = bitcast <8 x i64> %xor1.i.i to <16 x i32>
|
|
|
|
%1 = bitcast <8 x i64> %__src to <16 x i32>
|
|
|
|
%2 = bitcast i16 %__k to <16 x i1>
|
|
|
|
%3 = select <16 x i1> %2, <16 x i32> %0, <16 x i32> %1
|
|
|
|
%4 = bitcast <16 x i32> %3 to <8 x i64>
|
|
|
|
ret <8 x i64> %4
|
|
|
|
}
|
2016-08-31 13:37:50 +08:00
|
|
|
|
|
|
|
define <8 x double> @test_mm512_mask_xor_pd(<8 x double> %__W, i8 zeroext %__U, <8 x double> %__A, <8 x double> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_mask_xor_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpxorq %zmm2, %zmm1, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_xor_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vxorpd %zmm2, %zmm1, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <8 x double> %__A to <8 x i64>
|
|
|
|
%1 = bitcast <8 x double> %__B to <8 x i64>
|
|
|
|
%xor.i.i = xor <8 x i64> %0, %1
|
|
|
|
%2 = bitcast <8 x i64> %xor.i.i to <8 x double>
|
|
|
|
%3 = bitcast i8 %__U to <8 x i1>
|
|
|
|
%4 = select <8 x i1> %3, <8 x double> %2, <8 x double> %__W
|
|
|
|
ret <8 x double> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @test_mm512_maskz_xor_pd(i8 zeroext %__U, <8 x double> %__A, <8 x double> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_maskz_xor_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpxorq %zmm1, %zmm0, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_maskz_xor_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vxorpd %zmm1, %zmm0, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <8 x double> %__A to <8 x i64>
|
|
|
|
%1 = bitcast <8 x double> %__B to <8 x i64>
|
|
|
|
%xor.i.i = xor <8 x i64> %0, %1
|
|
|
|
%2 = bitcast <8 x i64> %xor.i.i to <8 x double>
|
|
|
|
%3 = bitcast i8 %__U to <8 x i1>
|
|
|
|
%4 = select <8 x i1> %3, <8 x double> %2, <8 x double> zeroinitializer
|
|
|
|
ret <8 x double> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @test_mm512_mask_xor_ps(<16 x float> %__W, i16 zeroext %__U, <16 x float> %__A, <16 x float> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_mask_xor_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpxord %zmm2, %zmm1, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_xor_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vxorps %zmm2, %zmm1, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <16 x float> %__A to <16 x i32>
|
|
|
|
%1 = bitcast <16 x float> %__B to <16 x i32>
|
|
|
|
%xor.i.i = xor <16 x i32> %0, %1
|
|
|
|
%2 = bitcast <16 x i32> %xor.i.i to <16 x float>
|
|
|
|
%3 = bitcast i16 %__U to <16 x i1>
|
|
|
|
%4 = select <16 x i1> %3, <16 x float> %2, <16 x float> %__W
|
|
|
|
ret <16 x float> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @test_mm512_maskz_xor_ps(i16 zeroext %__U, <16 x float> %__A, <16 x float> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_maskz_xor_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpxord %zmm1, %zmm0, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_maskz_xor_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vxorps %zmm1, %zmm0, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <16 x float> %__A to <16 x i32>
|
|
|
|
%1 = bitcast <16 x float> %__B to <16 x i32>
|
|
|
|
%xor.i.i = xor <16 x i32> %0, %1
|
|
|
|
%2 = bitcast <16 x i32> %xor.i.i to <16 x float>
|
|
|
|
%3 = bitcast i16 %__U to <16 x i1>
|
|
|
|
%4 = select <16 x i1> %3, <16 x float> %2, <16 x float> zeroinitializer
|
|
|
|
ret <16 x float> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @test_mm512_mask_or_pd(<8 x double> %__W, i8 zeroext %__U, <8 x double> %__A, <8 x double> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_mask_or_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vporq %zmm1, %zmm2, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_or_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vorpd %zmm1, %zmm2, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <8 x double> %__A to <8 x i64>
|
|
|
|
%1 = bitcast <8 x double> %__B to <8 x i64>
|
|
|
|
%or.i.i = or <8 x i64> %1, %0
|
|
|
|
%2 = bitcast <8 x i64> %or.i.i to <8 x double>
|
|
|
|
%3 = bitcast i8 %__U to <8 x i1>
|
|
|
|
%4 = select <8 x i1> %3, <8 x double> %2, <8 x double> %__W
|
|
|
|
ret <8 x double> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @test_mm512_maskz_or_pd(i8 zeroext %__U, <8 x double> %__A, <8 x double> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_maskz_or_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vporq %zmm0, %zmm1, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_maskz_or_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vorpd %zmm0, %zmm1, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <8 x double> %__A to <8 x i64>
|
|
|
|
%1 = bitcast <8 x double> %__B to <8 x i64>
|
|
|
|
%or.i.i = or <8 x i64> %1, %0
|
|
|
|
%2 = bitcast <8 x i64> %or.i.i to <8 x double>
|
|
|
|
%3 = bitcast i8 %__U to <8 x i1>
|
|
|
|
%4 = select <8 x i1> %3, <8 x double> %2, <8 x double> zeroinitializer
|
|
|
|
ret <8 x double> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @test_mm512_mask_or_ps(<16 x float> %__W, i16 zeroext %__U, <16 x float> %__A, <16 x float> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_mask_or_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpord %zmm1, %zmm2, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_or_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vorps %zmm1, %zmm2, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <16 x float> %__A to <16 x i32>
|
|
|
|
%1 = bitcast <16 x float> %__B to <16 x i32>
|
|
|
|
%or.i.i = or <16 x i32> %1, %0
|
|
|
|
%2 = bitcast <16 x i32> %or.i.i to <16 x float>
|
|
|
|
%3 = bitcast i16 %__U to <16 x i1>
|
|
|
|
%4 = select <16 x i1> %3, <16 x float> %2, <16 x float> %__W
|
|
|
|
ret <16 x float> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @test_mm512_maskz_or_ps(i16 zeroext %__U, <16 x float> %__A, <16 x float> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_maskz_or_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpord %zmm0, %zmm1, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_maskz_or_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vorps %zmm0, %zmm1, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <16 x float> %__A to <16 x i32>
|
|
|
|
%1 = bitcast <16 x float> %__B to <16 x i32>
|
|
|
|
%or.i.i = or <16 x i32> %1, %0
|
|
|
|
%2 = bitcast <16 x i32> %or.i.i to <16 x float>
|
|
|
|
%3 = bitcast i16 %__U to <16 x i1>
|
|
|
|
%4 = select <16 x i1> %3, <16 x float> %2, <16 x float> zeroinitializer
|
|
|
|
ret <16 x float> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @test_mm512_mask_and_pd(<8 x double> %__W, i8 zeroext %__U, <8 x double> %__A, <8 x double> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_mask_and_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpandq %zmm1, %zmm2, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_and_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vandpd %zmm1, %zmm2, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <8 x double> %__A to <8 x i64>
|
|
|
|
%1 = bitcast <8 x double> %__B to <8 x i64>
|
|
|
|
%and.i.i = and <8 x i64> %1, %0
|
|
|
|
%2 = bitcast <8 x i64> %and.i.i to <8 x double>
|
|
|
|
%3 = bitcast i8 %__U to <8 x i1>
|
|
|
|
%4 = select <8 x i1> %3, <8 x double> %2, <8 x double> %__W
|
|
|
|
ret <8 x double> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @test_mm512_maskz_and_pd(i8 zeroext %__U, <8 x double> %__A, <8 x double> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_maskz_and_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpandq %zmm0, %zmm1, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_maskz_and_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vandpd %zmm0, %zmm1, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <8 x double> %__A to <8 x i64>
|
|
|
|
%1 = bitcast <8 x double> %__B to <8 x i64>
|
|
|
|
%and.i.i = and <8 x i64> %1, %0
|
|
|
|
%2 = bitcast <8 x i64> %and.i.i to <8 x double>
|
|
|
|
%3 = bitcast i8 %__U to <8 x i1>
|
|
|
|
%4 = select <8 x i1> %3, <8 x double> %2, <8 x double> zeroinitializer
|
|
|
|
ret <8 x double> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @test_mm512_mask_and_ps(<16 x float> %__W, i16 zeroext %__U, <16 x float> %__A, <16 x float> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_mask_and_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpandd %zmm1, %zmm2, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_and_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vandps %zmm1, %zmm2, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <16 x float> %__A to <16 x i32>
|
|
|
|
%1 = bitcast <16 x float> %__B to <16 x i32>
|
|
|
|
%and.i.i = and <16 x i32> %1, %0
|
|
|
|
%2 = bitcast <16 x i32> %and.i.i to <16 x float>
|
|
|
|
%3 = bitcast i16 %__U to <16 x i1>
|
|
|
|
%4 = select <16 x i1> %3, <16 x float> %2, <16 x float> %__W
|
|
|
|
ret <16 x float> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @test_mm512_maskz_and_ps(i16 zeroext %__U, <16 x float> %__A, <16 x float> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_maskz_and_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpandd %zmm0, %zmm1, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_maskz_and_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vandps %zmm0, %zmm1, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <16 x float> %__A to <16 x i32>
|
|
|
|
%1 = bitcast <16 x float> %__B to <16 x i32>
|
|
|
|
%and.i.i = and <16 x i32> %1, %0
|
|
|
|
%2 = bitcast <16 x i32> %and.i.i to <16 x float>
|
|
|
|
%3 = bitcast i16 %__U to <16 x i1>
|
|
|
|
%4 = select <16 x i1> %3, <16 x float> %2, <16 x float> zeroinitializer
|
|
|
|
ret <16 x float> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @test_mm512_mask_andnot_pd(<8 x double> %__W, i8 zeroext %__U, <8 x double> %__A, <8 x double> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_mask_andnot_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpandnq %zmm2, %zmm1, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_andnot_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vandnpd %zmm2, %zmm1, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <8 x double> %__A to <8 x i64>
|
|
|
|
%neg.i.i = xor <8 x i64> %0, <i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1>
|
|
|
|
%1 = bitcast <8 x double> %__B to <8 x i64>
|
|
|
|
%and.i.i = and <8 x i64> %1, %neg.i.i
|
|
|
|
%2 = bitcast <8 x i64> %and.i.i to <8 x double>
|
|
|
|
%3 = bitcast i8 %__U to <8 x i1>
|
|
|
|
%4 = select <8 x i1> %3, <8 x double> %2, <8 x double> %__W
|
|
|
|
ret <8 x double> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x double> @test_mm512_maskz_andnot_pd(i8 zeroext %__U, <8 x double> %__A, <8 x double> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_maskz_andnot_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpandnq %zmm1, %zmm0, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_maskz_andnot_pd:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vandnpd %zmm1, %zmm0, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <8 x double> %__A to <8 x i64>
|
|
|
|
%neg.i.i = xor <8 x i64> %0, <i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1>
|
|
|
|
%1 = bitcast <8 x double> %__B to <8 x i64>
|
|
|
|
%and.i.i = and <8 x i64> %1, %neg.i.i
|
|
|
|
%2 = bitcast <8 x i64> %and.i.i to <8 x double>
|
|
|
|
%3 = bitcast i8 %__U to <8 x i1>
|
|
|
|
%4 = select <8 x i1> %3, <8 x double> %2, <8 x double> zeroinitializer
|
|
|
|
ret <8 x double> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @test_mm512_mask_andnot_ps(<16 x float> %__W, i16 zeroext %__U, <16 x float> %__A, <16 x float> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_mask_andnot_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpandnd %zmm2, %zmm1, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_mask_andnot_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vandnps %zmm2, %zmm1, %zmm0 {%k1}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <16 x float> %__A to <16 x i32>
|
|
|
|
%neg.i.i = xor <16 x i32> %0, <i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>
|
|
|
|
%1 = bitcast <16 x float> %__B to <16 x i32>
|
|
|
|
%and.i.i = and <16 x i32> %1, %neg.i.i
|
|
|
|
%2 = bitcast <16 x i32> %and.i.i to <16 x float>
|
|
|
|
%3 = bitcast i16 %__U to <16 x i1>
|
|
|
|
%4 = select <16 x i1> %3, <16 x float> %2, <16 x float> %__W
|
|
|
|
ret <16 x float> %4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x float> @test_mm512_maskz_andnot_ps(i16 zeroext %__U, <16 x float> %__A, <16 x float> %__B) {
|
|
|
|
; KNL-LABEL: test_mm512_maskz_andnot_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; KNL: ## %bb.0: ## %entry
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: kmovw %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; KNL-NEXT: vpandnd %zmm1, %zmm0, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; KNL-NEXT: retq
|
|
|
|
;
|
|
|
|
; SKX-LABEL: test_mm512_maskz_andnot_ps:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SKX: ## %bb.0: ## %entry
|
2017-03-29 00:35:29 +08:00
|
|
|
; SKX-NEXT: kmovd %edi, %k1
|
2016-08-31 13:37:52 +08:00
|
|
|
; SKX-NEXT: vandnps %zmm1, %zmm0, %zmm0 {%k1} {z}
|
2016-08-31 13:37:50 +08:00
|
|
|
; SKX-NEXT: retq
|
|
|
|
entry:
|
|
|
|
%0 = bitcast <16 x float> %__A to <16 x i32>
|
|
|
|
%neg.i.i = xor <16 x i32> %0, <i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>
|
|
|
|
%1 = bitcast <16 x float> %__B to <16 x i32>
|
|
|
|
%and.i.i = and <16 x i32> %1, %neg.i.i
|
|
|
|
%2 = bitcast <16 x i32> %and.i.i to <16 x float>
|
|
|
|
%3 = bitcast i16 %__U to <16 x i1>
|
|
|
|
%4 = select <16 x i1> %3, <16 x float> %2, <16 x float> zeroinitializer
|
|
|
|
ret <16 x float> %4
|
|
|
|
}
|
|
|
|
|