brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.7 KiB · 31afe97 Raw
116 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=skx | FileCheck %s3 4define <8 x float> @select_and_v8i1(<8 x i1> %a, <8 x i1> %b, <8 x i1> %c, <8 x float> %d) {5; CHECK-LABEL: select_and_v8i1:6; CHECK:       # %bb.0:7; CHECK-NEXT:    vpternlogq $200, %xmm1, %xmm2, %xmm08; CHECK-NEXT:    vpsllw $15, %xmm0, %xmm09; CHECK-NEXT:    vpmovw2m %xmm0, %k110; CHECK-NEXT:    vbroadcastss {{.*#+}} ymm0 = [1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0]11; CHECK-NEXT:    vmovaps %ymm3, %ymm0 {%k1}12; CHECK-NEXT:    retq13  %t2 = select <8 x i1> %a, <8 x i1> <i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1>, <8 x i1> %b14  %t3 = and <8 x i1> %c, %t215  %t4= select <8 x i1> %t3, <8 x float> %d, <8 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>16  ret <8 x float> %t417}18 19define <8 x float> @select_and_v8i1_2(i8 %m1, i8 %m2, i8 %m3, <8 x float> %d) {20; CHECK-LABEL: select_and_v8i1_2:21; CHECK:       # %bb.0:22; CHECK-NEXT:    orl %esi, %edi23; CHECK-NEXT:    andl %edx, %edi24; CHECK-NEXT:    kmovd %edi, %k125; CHECK-NEXT:    vbroadcastss {{.*#+}} ymm1 = [1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0]26; CHECK-NEXT:    vmovaps %ymm0, %ymm1 {%k1}27; CHECK-NEXT:    vmovaps %ymm1, %ymm028; CHECK-NEXT:    retq29  %a = bitcast i8 %m1 to <8 x i1>30  %b = bitcast i8 %m2 to <8 x i1>31  %c = bitcast i8 %m3 to <8 x i1>32  %t2 = select <8 x i1> %a, <8 x i1> <i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1>, <8 x i1> %b33  %t3 = and <8 x i1> %c, %t234  %t4= select <8 x i1> %t3, <8 x float> %d, <8 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>35  ret <8 x float> %t436}37 38define <8 x float> @select_and_v8i1_3(<8 x i16> %m1, <8 x i16> %m2, <8 x i16> %m3, <8 x float> %d) {39; CHECK-LABEL: select_and_v8i1_3:40; CHECK:       # %bb.0:41; CHECK-NEXT:    vpcmpeqw %xmm1, %xmm0, %k042; CHECK-NEXT:    vpcmpeqw %xmm2, %xmm0, %k143; CHECK-NEXT:    korb %k1, %k0, %k144; CHECK-NEXT:    vpcmpeqw %xmm2, %xmm1, %k1 {%k1}45; CHECK-NEXT:    vbroadcastss {{.*#+}} ymm0 = [1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0]46; CHECK-NEXT:    vmovaps %ymm3, %ymm0 {%k1}47; CHECK-NEXT:    retq48  %a = icmp eq <8 x i16> %m1, %m249  %b = icmp eq <8 x i16> %m1, %m350  %c = icmp eq <8 x i16> %m2, %m351  %t2 = select <8 x i1> %a, <8 x i1> <i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1, i1 -1>, <8 x i1> %b52  %t3 = and <8 x i1> %c, %t253  %t4= select <8 x i1> %t3, <8 x float> %d, <8 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>54  ret <8 x float> %t455}56 57define <8 x float> @select_or_v8i1(<8 x i1> %a, <8 x i1> %b, <8 x i1> %c, <8 x float> %d) {58; CHECK-LABEL: select_or_v8i1:59; CHECK:       # %bb.0:60; CHECK-NEXT:    vpsllw $15, %xmm2, %xmm261; CHECK-NEXT:    vpmovw2m %xmm2, %k062; CHECK-NEXT:    vpsllw $15, %xmm1, %xmm163; CHECK-NEXT:    vpmovw2m %xmm1, %k164; CHECK-NEXT:    vpsllw $15, %xmm0, %xmm065; CHECK-NEXT:    vpmovw2m %xmm0, %k266; CHECK-NEXT:    kandnb %k1, %k2, %k167; CHECK-NEXT:    korb %k1, %k0, %k168; CHECK-NEXT:    vbroadcastss {{.*#+}} ymm0 = [1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0]69; CHECK-NEXT:    vmovaps %ymm3, %ymm0 {%k1}70; CHECK-NEXT:    retq71  %t2 = select <8 x i1> %a, <8 x i1> <i1 0, i1 0, i1 0, i1 0, i1 0, i1 0, i1 0, i1 0>, <8 x i1> %b72  %t3 = or <8 x i1> %c, %t273  %t4= select <8 x i1> %t3, <8 x float> %d, <8 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>74  ret <8 x float> %t475}76 77define <8 x float> @select_or_v8i1_2(i8 %m1, i8 %m2, i8 %m3, <8 x float> %d) {78; CHECK-LABEL: select_or_v8i1_2:79; CHECK:       # %bb.0:80; CHECK-NEXT:    kmovd %edi, %k081; CHECK-NEXT:    kmovd %esi, %k182; CHECK-NEXT:    kmovd %edx, %k283; CHECK-NEXT:    kandnb %k1, %k0, %k084; CHECK-NEXT:    korb %k0, %k2, %k185; CHECK-NEXT:    vbroadcastss {{.*#+}} ymm1 = [1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0]86; CHECK-NEXT:    vmovaps %ymm0, %ymm1 {%k1}87; CHECK-NEXT:    vmovaps %ymm1, %ymm088; CHECK-NEXT:    retq89  %a = bitcast i8 %m1 to <8 x i1>90  %b = bitcast i8 %m2 to <8 x i1>91  %c = bitcast i8 %m3 to <8 x i1>92  %t2 = select <8 x i1> %a, <8 x i1> <i1 0, i1 0, i1 0, i1 0, i1 0, i1 0, i1 0, i1 0>, <8 x i1> %b93  %t3 = or <8 x i1> %c, %t294  %t4= select <8 x i1> %t3, <8 x float> %d, <8 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>95  ret <8 x float> %t496}97 98define <8 x float> @select_or_v8i1_3(<8 x i16> %m1, <8 x i16> %m2, <8 x i16> %m3, <8 x float> %d) {99; CHECK-LABEL: select_or_v8i1_3:100; CHECK:       # %bb.0:101; CHECK-NEXT:    vpcmpneqw %xmm1, %xmm0, %k1102; CHECK-NEXT:    vpcmpeqw %xmm2, %xmm1, %k0103; CHECK-NEXT:    vpcmpeqw %xmm2, %xmm0, %k1 {%k1}104; CHECK-NEXT:    korb %k1, %k0, %k1105; CHECK-NEXT:    vbroadcastss {{.*#+}} ymm0 = [1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0,1.0E+0]106; CHECK-NEXT:    vmovaps %ymm3, %ymm0 {%k1}107; CHECK-NEXT:    retq108  %a = icmp eq <8 x i16> %m1, %m2109  %b = icmp eq <8 x i16> %m1, %m3110  %c = icmp eq <8 x i16> %m2, %m3111  %t2 = select <8 x i1> %a, <8 x i1> <i1 0, i1 0, i1 0, i1 0, i1 0, i1 0, i1 0, i1 0>, <8 x i1> %b112  %t3 = or <8 x i1> %c, %t2113  %t4= select <8 x i1> %t3, <8 x float> %d, <8 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>114  ret <8 x float> %t4115}116