diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2017-01-25 17:24:31 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-01-25 17:24:31 +0000 |
| commit | 1da8ba2adcb792bf15329123eff9c0279c8d4fe3 (patch) | |
| tree | 89c956433d1226911a2b87e8578a8e3f92a48c9b /llvm/test/Transforms | |
| parent | 4f724dce428dfe79489de17eef1809aa40324eef (diff) | |
| download | bcm5719-llvm-1da8ba2adcb792bf15329123eff9c0279c8d4fe3.tar.gz bcm5719-llvm-1da8ba2adcb792bf15329123eff9c0279c8d4fe3.zip | |
[SLP] Extra test for functionality with extra args.
llvm-svn: 293076
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/SLPVectorizer/X86/horizontal-list.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/Transforms/SLPVectorizer/X86/horizontal-list.ll b/llvm/test/Transforms/SLPVectorizer/X86/horizontal-list.ll index d2cbefe4916..1c3195910de 100644 --- a/llvm/test/Transforms/SLPVectorizer/X86/horizontal-list.ll +++ b/llvm/test/Transforms/SLPVectorizer/X86/horizontal-list.ll @@ -1012,7 +1012,8 @@ define float @extra_args_no_replace(float* nocapture readonly %x, i32 %a, i32 %b ; 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: [[ADD:%.*]] = fadd fast float [[CONV]], 3.000000e+00 +; CHECK-NEXT: [[ADDC:%.*]] = fadd fast float [[CONV]], 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 ; CHECK-NEXT: [[TMP1:%.*]] = load float, float* [[ARRAYIDX3]], align 4 @@ -1039,7 +1040,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 - %add = fadd fast float %conv, 3.000000e+00 + %addc = fadd fast float %conv, 3.000000e+00 + %add = fadd fast float %conv, %addc %add1 = fadd fast float %0, %add %arrayidx3 = getelementptr inbounds float, float* %x, i64 1 %1 = load float, float* %arrayidx3, align 4 |

