From: Alexey Bataev Date: Thu, 26 Jan 2017 06:19:52 +0000 (+0000) Subject: [SLP] Fixed test for extra arguments in horizontal reductions. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=add597c306552f8b9029f4bfc912090261996e5a;p=llvm [SLP] Fixed test for extra arguments in horizontal reductions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293153 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/SLPVectorizer/X86/horizontal-list.ll b/test/Transforms/SLPVectorizer/X86/horizontal-list.ll index 1c3195910de..5ab82fecd5f 100644 --- a/test/Transforms/SLPVectorizer/X86/horizontal-list.ll +++ b/test/Transforms/SLPVectorizer/X86/horizontal-list.ll @@ -1006,13 +1006,14 @@ define float @extra_args(float* nocapture readonly %x, i32 %a, i32 %b) { ret float %add4.6 } -define float @extra_args_no_replace(float* nocapture readonly %x, i32 %a, i32 %b) { +define float @extra_args_no_replace(float* nocapture readonly %x, i32 %a, i32 %b, i32 %c) { ; CHECK-LABEL: @extra_args_no_replace( ; CHECK-NEXT: entry: ; CHECK-NEXT: [[MUL:%.*]] = mul nsw i32 [[B:%.*]], [[A:%.*]] ; CHECK-NEXT: [[CONV:%.*]] = sitofp i32 [[MUL]] to float ; CHECK-NEXT: [[TMP0:%.*]] = load float, float* [[X:%.*]], align 4 -; CHECK-NEXT: [[ADDC:%.*]] = fadd fast float [[CONV]], 3.000000e+00 +; CHECK-NEXT: [[CONVC:%.*]] = sitofp i32 [[C:%.*]] to float +; CHECK-NEXT: [[ADDC:%.*]] = fadd fast float [[CONVC]], 3.000000e+00 ; CHECK-NEXT: [[ADD:%.*]] = fadd fast float [[CONV]], [[ADDC]] ; CHECK-NEXT: [[ADD1:%.*]] = fadd fast float [[TMP0]], [[ADD]] ; CHECK-NEXT: [[ARRAYIDX3:%.*]] = getelementptr inbounds float, float* [[X]], i64 1 @@ -1040,7 +1041,8 @@ define float @extra_args_no_replace(float* nocapture readonly %x, i32 %a, i32 %b %mul = mul nsw i32 %b, %a %conv = sitofp i32 %mul to float %0 = load float, float* %x, align 4 - %addc = fadd fast float %conv, 3.000000e+00 + %convc = sitofp i32 %c to float + %addc = fadd fast float %convc, 3.000000e+00 %add = fadd fast float %conv, %addc %add1 = fadd fast float %0, %add %arrayidx3 = getelementptr inbounds float, float* %x, i64 1