brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 4c931e4 Raw
38 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=i686-unknown-linux-android29 -mattr=+sse2 < %s | FileCheck %s3 4define i64 @test(ptr %a) {5; CHECK-LABEL: define i64 @test(6; CHECK-SAME: ptr [[A:%.*]]) #[[ATTR0:[0-9]+]] {7; CHECK-NEXT:    [[TMP2:%.*]] = load i64, ptr [[A]], align 48; CHECK-NEXT:    [[TMP7:%.*]] = insertelement <4 x i64> <i64 poison, i64 0, i64 0, i64 0>, i64 [[TMP2]], i32 09; CHECK-NEXT:    [[TMP3:%.*]] = add <4 x i64> zeroinitializer, [[TMP7]]10; CHECK-NEXT:    [[TMP4:%.*]] = add <4 x i64> <i64 0, i64 0, i64 0, i64 1>, [[TMP3]]11; CHECK-NEXT:    [[TMP5:%.*]] = shufflevector <4 x i64> [[TMP4]], <4 x i64> poison, <6 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison>12; CHECK-NEXT:    [[TMP6:%.*]] = shufflevector <6 x i64> [[TMP5]], <6 x i64> <i64 0, i64 0, i64 undef, i64 undef, i64 undef, i64 undef>, <6 x i32> <i32 0, i32 1, i32 2, i32 3, i32 6, i32 7>13; CHECK-NEXT:    br label %[[BB7:.*]]14; CHECK:       [[BB7]]:15; CHECK-NEXT:    [[TMP8:%.*]] = phi <6 x i64> [ [[TMP6]], [[TMP0:%.*]] ]16; CHECK-NEXT:    ret i64 017;18  %1 = add i64 0, 019  %2 = load i64, ptr %a, align 420  %3 = add i64 0, 021  %4 = add i64 %2, 022  %5 = add i64 0, 023  %6 = add i64 1, %124  %7 = ashr i64 0, 125  %8 = add i64 0, 026  %9 = ashr i64 %8, 027  br label %1028 2910:30  %11 = phi i64 [ %4, %0 ]31  %12 = phi i64 [ %3, %0 ]32  %13 = phi i64 [ %9, %0 ]33  %14 = phi i64 [ %7, %0 ]34  %15 = phi i64 [ %5, %0 ]35  %16 = phi i64 [ %6, %0 ]36  ret i64 037}38