brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.2 KiB · c4ddc5d Raw
97 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s3 4define i16 @test(i16 %v1, i16 %v2) {5; CHECK-LABEL: define i16 @test(6; CHECK-SAME: i16 [[V1:%.*]], i16 [[V2:%.*]]) {7; CHECK-NEXT:  [[ENTRY:.*:]]8; CHECK-NEXT:    [[TMP0:%.*]] = insertelement <4 x i16> <i16 0, i16 0, i16 0, i16 poison>, i16 [[V2]], i32 39; CHECK-NEXT:    [[TMP1:%.*]] = insertelement <4 x i16> <i16 0, i16 0, i16 0, i16 poison>, i16 [[V1]], i32 310; CHECK-NEXT:    [[TMP3:%.*]] = and <4 x i16> [[TMP0]], [[TMP1]]11; CHECK-NEXT:    [[TMP5:%.*]] = shufflevector <4 x i16> [[TMP0]], <4 x i16> poison, <2 x i32> <i32 poison, i32 3>12; CHECK-NEXT:    [[TMP6:%.*]] = insertelement <2 x i16> [[TMP5]], i16 [[V1]], i32 013; CHECK-NEXT:    [[TMP7:%.*]] = shufflevector <2 x i16> [[TMP6]], <2 x i16> poison, <4 x i32> <i32 0, i32 0, i32 0, i32 1>14; CHECK-NEXT:    [[TMP8:%.*]] = or <4 x i16> [[TMP7]], zeroinitializer15; CHECK-NEXT:    [[TMP9:%.*]] = and <4 x i16> [[TMP3]], zeroinitializer16; CHECK-NEXT:    [[TMP10:%.*]] = and <4 x i16> [[TMP9]], zeroinitializer17; CHECK-NEXT:    [[TMP11:%.*]] = icmp ne <4 x i16> [[TMP10]], zeroinitializer18; CHECK-NEXT:    [[TMP12:%.*]] = or <4 x i1> [[TMP11]], zeroinitializer19; CHECK-NEXT:    [[TMP13:%.*]] = or <4 x i16> [[TMP8]], zeroinitializer20; CHECK-NEXT:    [[TMP14:%.*]] = or <4 x i16> [[TMP13]], zeroinitializer21; CHECK-NEXT:    [[TMP15:%.*]] = or <4 x i16> [[TMP14]], zeroinitializer22; CHECK-NEXT:    [[TMP16:%.*]] = icmp ne <4 x i16> [[TMP15]], zeroinitializer23; CHECK-NEXT:    [[TMP17:%.*]] = or <4 x i1> zeroinitializer, [[TMP16]]24; CHECK-NEXT:    [[TMP18:%.*]] = or <4 x i1> [[TMP12]], [[TMP17]]25; CHECK-NEXT:    [[TMP19:%.*]] = extractelement <4 x i1> [[TMP18]], i32 226; CHECK-NEXT:    [[TMP20:%.*]] = extractelement <4 x i1> [[TMP18]], i32 327; CHECK-NEXT:    [[TMP21:%.*]] = or i1 [[TMP20]], [[TMP19]]28; CHECK-NEXT:    [[TMP22:%.*]] = extractelement <4 x i1> [[TMP18]], i32 129; CHECK-NEXT:    [[TMP23:%.*]] = or i1 false, [[TMP22]]30; CHECK-NEXT:    [[TMP24:%.*]] = freeze <4 x i1> [[TMP18]]31; CHECK-NEXT:    [[TMP25:%.*]] = call i1 @llvm.vector.reduce.or.v4i1(<4 x i1> [[TMP24]])32; CHECK-NEXT:    [[SPEC_SELECT31:%.*]] = select i1 [[TMP25]], i32 0, i32 033; CHECK-NEXT:    [[TMP26:%.*]] = extractelement <4 x i1> [[TMP18]], i32 034; CHECK-NEXT:    [[TMP27:%.*]] = or i1 false, [[TMP26]]35; CHECK-NEXT:    store i32 [[SPEC_SELECT31]], ptr null, align 436; CHECK-NEXT:    ret i16 037;38entry:39  %0 = and i16 %v2, %v140  %1 = and i16 %0, 041  %2 = and i16 %1, 042  %3 = icmp ne i16 %2, 043  %.not5.not = or i1 %3, false44  %inc.1.1.i82.i.i = or i16 %v2, 045  %inc.143.1.i98.i.i = or i16 0, 046  %4 = or i16 %inc.1.1.i82.i.i, 047  %5 = or i16 %4, 048  %6 = or i16 %5, 049  %7 = icmp ne i16 %6, 050  %.not7.not = or i1 false, %751  %8 = or i1 %.not5.not, %.not7.not52  %9 = and i16 0, %inc.143.1.i98.i.i53  %10 = and i16 %9, 054  %11 = icmp ne i16 %10, 055  %.not5.not.1 = or i1 %11, false56  %inc.143.i76.i.i.1 = or i16 %v1, 057  %inc.143.1.i98.i.i.1 = or i16 0, 058  %12 = or i16 0, %inc.143.i76.i.i.159  %13 = or i16 %12, 060  %14 = or i16 %13, 061  %15 = icmp ne i16 %14, 062  %.not7.not.1 = or i1 false, %1563  %16 = or i1 %.not5.not.1, %.not7.not.164  %17 = or i1 %8, %1665  %18 = and i16 0, %inc.143.1.i98.i.i.166  %19 = and i16 %18, 067  %20 = icmp ne i16 %19, 068  %.not5.not.2 = or i1 %20, false69  %inc.143.i76.i.i.2 = or i16 %v1, 070  %inc.143.1.i98.i.i.2 = or i16 0, 071  %21 = or i16 0, %inc.143.i76.i.i.272  %22 = or i16 %21, 073  %23 = or i16 %22, 074  %24 = icmp ne i16 %23, 075  %.not7.not.2 = or i1 false, %2476  %25 = or i1 %.not5.not.2, %.not7.not.277  %26 = or i1 false, %2578  %27 = and i16 0, %inc.143.1.i98.i.i.279  %28 = and i16 %27, 080  %29 = icmp ne i16 %28, 081  %.not5.not.3 = or i1 %29, false82  %inc.143.i76.i.i.3 = or i16 %v1, 083  %30 = or i16 0, %inc.143.i76.i.i.384  %31 = or i16 %30, 085  %32 = or i16 %31, 086  %33 = icmp ne i16 %32, 087  %.not7.not.3 = or i1 false, %3388  %34 = or i1 %.not5.not.3, %.not7.not.389  %35 = select i1 %34, i1 true, i1 %2590  %36 = select i1 %35, i1 true, i1 %1691  %37 = select i1 %36, i1 true, i1 %892  %spec.select31 = select i1 %37, i32 0, i32 093  %38 = or i1 false, %3494  store i32 %spec.select31, ptr null, align 495  ret i16 096}97