brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 7e7d435 Raw
32 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 -slp-threshold=-100 | FileCheck %s3 4define void @test(ptr %i) {5; CHECK-LABEL: define void @test(6; CHECK-SAME: ptr [[I:%.*]]) {7; CHECK-NEXT:  [[BB:.*]]:8; CHECK-NEXT:    br label %[[BB2:.*]]9; CHECK:       [[BB2]]:10; CHECK-NEXT:    [[TMP0:%.*]] = phi <2 x i32> [ [[TMP3:%.*]], %[[BB2]] ], [ zeroinitializer, %[[BB]] ]11; CHECK-NEXT:    store <2 x i32> [[TMP0]], ptr [[I]], align 412; CHECK-NEXT:    [[TMP1:%.*]] = shufflevector <2 x i32> [[TMP0]], <2 x i32> <i32 0, i32 poison>, <2 x i32> <i32 2, i32 1>13; CHECK-NEXT:    [[TMP2:%.*]] = trunc <2 x i32> [[TMP1]] to <2 x i1>14; CHECK-NEXT:    [[TMP3]] = select <2 x i1> [[TMP2]], <2 x i32> zeroinitializer, <2 x i32> zeroinitializer15; CHECK-NEXT:    br label %[[BB2]]16;17bb:18  %i1 = getelementptr i8, ptr %i, i64 419  br label %bb220 21bb2:22  %i3 = phi i32 [ %i6, %bb2 ], [ 0, %bb ]23  %i4 = phi i32 [ %i8, %bb2 ], [ 0, %bb ]24  store i32 %i3, ptr %i25  store i32 %i4, ptr %i126  %i5 = trunc i32 0 to i127  %i6 = select i1 %i5, i32 0, i32 028  %i7 = trunc i32 %i4 to i129  %i8 = select i1 %i7, i32 0, i32 030  br label %bb231}32