]> granicus.if.org Git - llvm/commitdiff
[SLP] Fixed test for extra arguments in horizontal reductions.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 26 Jan 2017 06:19:52 +0000 (06:19 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 26 Jan 2017 06:19:52 +0000 (06:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293153 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SLPVectorizer/X86/horizontal-list.ll

index 1c3195910de8c5af32e76c6494418101632e17d0..5ab82fecd5fd5f23cf80c085866f278aad2e5be3 100644 (file)
@@ -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