brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · cf5927b Raw
45 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: %if x86-registered-target %{ opt -passes=slp-vectorizer -S -mtriple=x86_64-unknown-linux -slp-threshold=-10 < %s | FileCheck %s %}3; RUN: %if aaarch64-registered-target %{ opt -passes=slp-vectorizer -S -mtriple=aarch64-unknown-linux -slp-threshold=-10 < %s | FileCheck %s %}4 5define i32 @test() {6; CHECK-LABEL: define i32 @test() {7; CHECK-NEXT:  bb:8; CHECK-NEXT:    br label [[BB1:%.*]]9; CHECK:       bb1:10; CHECK-NEXT:    [[TMP0:%.*]] = phi <2 x i32> [ [[TMP5:%.*]], [[BB3:%.*]] ], [ zeroinitializer, [[BB:%.*]] ]11; CHECK-NEXT:    [[TMP1:%.*]] = shufflevector <2 x i32> [[TMP0]], <2 x i32> poison, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1>12; CHECK-NEXT:    br i1 false, label [[BB4:%.*]], label [[BB3]]13; CHECK:       bb3:14; CHECK-NEXT:    [[TMP2:%.*]] = shufflevector <2 x i32> [[TMP0]], <2 x i32> <i32 0, i32 poison>, <2 x i32> <i32 2, i32 1>15; CHECK-NEXT:    [[TMP5]] = add <2 x i32> zeroinitializer, [[TMP2]]16; CHECK-NEXT:    br label [[BB1]]17; CHECK:       bb4:18; CHECK-NEXT:    [[TMP6:%.*]] = phi <8 x i32> [ [[TMP1]], [[BB1]] ]19; CHECK-NEXT:    ret i32 020;21bb:22  br label %bb123 24bb1:25  %phi = phi i32 [ %or, %bb3 ], [ 0, %bb ]26  %phi2 = phi i32 [ %add, %bb3 ], [ 0, %bb ]27  br i1 false, label %bb4, label %bb328 29bb3:30  %or = or i32 0, %phi31  %add = add i32 0, 032  br label %bb133 34bb4:35  %phi5 = phi i32 [ %phi2, %bb1 ]36  %phi6 = phi i32 [ %phi2, %bb1 ]37  %phi7 = phi i32 [ %phi2, %bb1 ]38  %phi8 = phi i32 [ %phi2, %bb1 ]39  %phi9 = phi i32 [ %phi2, %bb1 ]40  %phi10 = phi i32 [ %phi2, %bb1 ]41  %phi11 = phi i32 [ %phi, %bb1 ]42  %phi12 = phi i32 [ %phi, %bb1 ]43  ret i32 044}45