brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.9 KiB · cf7faf8 Raw
74 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: %if x86-registered-target %{ opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux < %s | FileCheck %s %}3; RUN: %if aarch64-registered-target %{ opt -S --passes=slp-vectorizer -mtriple=aarch64-unknown-linux < %s | FileCheck %s %}4 5@a = external global [32000 x float], align 646 7define void @test() {8; CHECK-LABEL: define void @test() {9; CHECK-NEXT:  [[ENTRY:.*]]:10; CHECK-NEXT:    br label %[[FOR_BODY:.*]]11; CHECK:       [[FOR_BODY]]:12; CHECK-NEXT:    [[TMP0:%.*]] = phi float [ 0.000000e+00, %[[ENTRY]] ], [ [[TMP16:%.*]], %[[FOR_BODY]] ]13; CHECK-NEXT:    [[INDVARS_IV:%.*]] = phi i64 [ 0, %[[ENTRY]] ], [ [[INDVARS_IV_NEXT:%.*]], %[[FOR_BODY]] ]14; CHECK-NEXT:    [[TMP1:%.*]] = add nuw nsw i64 [[INDVARS_IV]], 115; CHECK-NEXT:    [[ARRAYIDX:%.*]] = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 [[TMP1]]16; CHECK-NEXT:    [[ARRAYIDX6:%.*]] = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 [[INDVARS_IV]]17; CHECK-NEXT:    [[TMP5:%.*]] = add nuw nsw i64 [[INDVARS_IV]], 418; CHECK-NEXT:    [[ARRAYIDX31:%.*]] = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 [[TMP5]]19; CHECK-NEXT:    [[TMP6:%.*]] = load float, ptr [[ARRAYIDX31]], align 420; CHECK-NEXT:    [[TMP14:%.*]] = load <4 x float>, ptr [[ARRAYIDX]], align 421; CHECK-NEXT:    [[TMP4:%.*]] = shufflevector <4 x float> [[TMP14]], <4 x float> poison, <4 x i32> <i32 poison, i32 0, i32 1, i32 2>22; CHECK-NEXT:    [[TMP7:%.*]] = insertelement <4 x float> poison, float [[TMP0]], i32 023; CHECK-NEXT:    [[TMP11:%.*]] = shufflevector <4 x float> [[TMP4]], <4 x float> [[TMP7]], <4 x i32> <i32 4, i32 1, i32 2, i32 3>24; CHECK-NEXT:    [[TMP15:%.*]] = fmul fast <4 x float> [[TMP11]], [[TMP14]]25; CHECK-NEXT:    store <4 x float> [[TMP15]], ptr [[ARRAYIDX6]], align 426; CHECK-NEXT:    [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 527; CHECK-NEXT:    [[ARRAYIDX41:%.*]] = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 [[INDVARS_IV_NEXT]]28; CHECK-NEXT:    [[TMP16]] = load float, ptr [[ARRAYIDX41]], align 429; CHECK-NEXT:    [[MUL45:%.*]] = fmul fast float [[TMP16]], [[TMP6]]30; CHECK-NEXT:    store float [[MUL45]], ptr [[ARRAYIDX31]], align 431; CHECK-NEXT:    [[CMP2:%.*]] = icmp ult i64 [[INDVARS_IV]], 3199032; CHECK-NEXT:    br i1 [[CMP2]], label %[[FOR_BODY]], label %[[EXIT:.*]]33; CHECK:       [[EXIT]]:34; CHECK-NEXT:    ret void35;36entry:37  br label %for.body38 39for.body:40  %0 = phi float [ 0.000000e+00, %entry ], [ %9, %for.body ]41  %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]42  %1 = add nuw nsw i64 %indvars.iv, 143  %arrayidx = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 %144  %2 = load float, ptr %arrayidx, align 445  %arrayidx6 = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 %indvars.iv46  %mul = fmul fast float %0, %247  store float %mul, ptr %arrayidx6, align 448  %3 = add nuw nsw i64 %indvars.iv, 249  %arrayidx11 = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 %350  %4 = load float, ptr %arrayidx11, align 451  %mul15 = fmul fast float %4, %252  store float %mul15, ptr %arrayidx, align 453  %5 = add nuw nsw i64 %indvars.iv, 354  %arrayidx21 = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 %555  %6 = load float, ptr %arrayidx21, align 456  %mul25 = fmul fast float %6, %457  store float %mul25, ptr %arrayidx11, align 458  %7 = add nuw nsw i64 %indvars.iv, 459  %arrayidx31 = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 %760  %8 = load float, ptr %arrayidx31, align 461  %mul35 = fmul fast float %8, %662  store float %mul35, ptr %arrayidx21, align 463  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 564  %arrayidx41 = getelementptr inbounds [32000 x float], ptr @a, i64 0, i64 %indvars.iv.next65  %9 = load float, ptr %arrayidx41, align 466  %mul45 = fmul fast float %9, %867  store float %mul45, ptr %arrayidx31, align 468  %cmp2 = icmp ult i64 %indvars.iv, 3199069  br i1 %cmp2, label %for.body, label %exit70 71exit:72  ret void73}74