brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 590b0be Raw
41 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 62; RUN: opt -passes=slp-vectorizer -S --mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s3 4@a = common global [100 x i64] zeroinitializer, align 645 6define void @test() {7; CHECK-LABEL: define void @test() {8; CHECK-NEXT:  [[ENTRY:.*]]:9; CHECK-NEXT:    [[TMP0:%.*]] = load <2 x i64>, ptr getelementptr inbounds nuw (i8, ptr @a, i64 48), align 810; CHECK-NEXT:    [[TMP1:%.*]] = add <2 x i64> [[TMP0]], splat (i64 1)11; CHECK-NEXT:    [[TMP2:%.*]] = shufflevector <2 x i64> [[TMP0]], <2 x i64> [[TMP1]], <2 x i32> <i32 0, i32 3>12; CHECK-NEXT:    [[TMP3:%.*]] = add <2 x i64> [[TMP2]], splat (i64 1)13; CHECK-NEXT:    br i1 false, label %[[LOP_RHSCNT_I_PEEL:.*]], label %[[LAND_END_I_PEEL:.*]]14; CHECK:       [[LOP_RHSCNT_I_PEEL]]:15; CHECK-NEXT:    [[TMP4:%.*]] = or <2 x i64> [[TMP1]], <i64 1, i64 0>16; CHECK-NEXT:    br label %[[LAND_END_I_PEEL]]17; CHECK:       [[LAND_END_I_PEEL]]:18; CHECK-NEXT:    [[TMP5:%.*]] = phi <2 x i64> [ [[TMP3]], %[[ENTRY]] ], [ [[TMP4]], %[[LOP_RHSCNT_I_PEEL]] ]19; CHECK-NEXT:    store <2 x i64> [[TMP5]], ptr getelementptr inbounds nuw (i8, ptr @a, i64 48), align 820; CHECK-NEXT:    ret void21;22entry:23  %.promoted104.i = load i64, ptr getelementptr inbounds nuw (i8, ptr @a, i64 56), align 824  %.promoted103.i = load i64, ptr getelementptr inbounds nuw (i8, ptr @a, i64 48), align 825  %0 = add i64 %.promoted104.i, 126  %1 = add i64 %.promoted103.i, 127  %2 = add i64 %0, 128  br i1 false, label %lop.rhscnt.i.peel, label %land.end.i.peel29 30lop.rhscnt.i.peel:31  %3 = or i64 %1, 132  br label %land.end.i.peel33 34land.end.i.peel:35  %4 = phi i64 [ %2, %entry ], [ %0, %lop.rhscnt.i.peel ]36  %5 = phi i64 [ %1, %entry ], [ %3, %lop.rhscnt.i.peel ]37  store i64 %5, ptr getelementptr inbounds nuw (i8, ptr @a, i64 48), align 838  store i64 %4, ptr getelementptr inbounds nuw (i8, ptr @a, i64 56), align 839  ret void40}41