brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · ffeb804 Raw
43 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 <4 x float> @test(i64 %0) {5; CHECK-LABEL: define <4 x float> @test(6; CHECK-SAME: i64 [[TMP0:%.*]]) {7; CHECK-NEXT:  [[ENTRY:.*:]]8; CHECK-NEXT:    [[TMP3:%.*]] = insertelement <4 x i64> <i64 0, i64 0, i64 poison, i64 0>, i64 [[TMP0]], i32 29; CHECK-NEXT:    [[TMP2:%.*]] = trunc <4 x i64> [[TMP3]] to <4 x i32>10; CHECK-NEXT:    [[TMP4:%.*]] = sitofp <4 x i64> [[TMP3]] to <4 x float>11; CHECK-NEXT:    [[TMP5:%.*]] = sitofp <4 x i32> [[TMP2]] to <4 x float>12; CHECK-NEXT:    [[TMP6:%.*]] = fadd <4 x float> [[TMP4]], [[TMP5]]13; CHECK-NEXT:    [[TMP7:%.*]] = fcmp ogt <4 x float> [[TMP6]], zeroinitializer14; CHECK-NEXT:    ret <4 x float> [[TMP6]]15;16entry:17  %1 = trunc i64 0 to i3218  %2 = sitofp i32 %1 to float19  %3 = sitofp i64 0 to float20  %4 = fadd float %3, %221  %to_max.i = fcmp ogt float %4, 0.000000e+0022  %5 = trunc i64 0 to i3223  %6 = sitofp i32 %5 to float24  %7 = sitofp i64 0 to float25  %8 = fadd float %7, %626  %to_max.i.1 = fcmp ogt float %8, 0.000000e+0027  %9 = trunc i64 %0 to i3228  %10 = sitofp i32 %9 to float29  %11 = sitofp i64 %0 to float30  %12 = fadd float %11, %1031  %to_max.i.2 = fcmp ogt float %12, 0.000000e+0032  %13 = trunc i64 0 to i3233  %14 = sitofp i32 %13 to float34  %15 = sitofp i64 0 to float35  %16 = fadd float %15, %1436  %to_max.i.3 = fcmp ogt float %16, 0.000000e+0037  %r0 = insertelement <4 x float> poison, float %4, i32 038  %r1 = insertelement <4 x float> %r0, float %8, i32 139  %r2 = insertelement <4 x float> %r1, float %12, i32 240  %r3 = insertelement <4 x float> %r2, float %16, i32 341  ret <4 x float> %r342}43