forked from OSchip/llvm-project
[SLP] Fixed test for extra arguments in horizontal reductions.
llvm-svn: 293153
This commit is contained in:
parent
001aad7da7
commit
7046a852b3
|
@ -1006,13 +1006,14 @@ define float @extra_args(float* nocapture readonly %x, i32 %a, i32 %b) {
|
||||||
ret float %add4.6
|
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-LABEL: @extra_args_no_replace(
|
||||||
; CHECK-NEXT: entry:
|
; CHECK-NEXT: entry:
|
||||||
; CHECK-NEXT: [[MUL:%.*]] = mul nsw i32 [[B:%.*]], [[A:%.*]]
|
; CHECK-NEXT: [[MUL:%.*]] = mul nsw i32 [[B:%.*]], [[A:%.*]]
|
||||||
; CHECK-NEXT: [[CONV:%.*]] = sitofp i32 [[MUL]] to float
|
; CHECK-NEXT: [[CONV:%.*]] = sitofp i32 [[MUL]] to float
|
||||||
; CHECK-NEXT: [[TMP0:%.*]] = load float, float* [[X:%.*]], align 4
|
; 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: [[ADD:%.*]] = fadd fast float [[CONV]], [[ADDC]]
|
||||||
; CHECK-NEXT: [[ADD1:%.*]] = fadd fast float [[TMP0]], [[ADD]]
|
; CHECK-NEXT: [[ADD1:%.*]] = fadd fast float [[TMP0]], [[ADD]]
|
||||||
; CHECK-NEXT: [[ARRAYIDX3:%.*]] = getelementptr inbounds float, float* [[X]], i64 1
|
; 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
|
%mul = mul nsw i32 %b, %a
|
||||||
%conv = sitofp i32 %mul to float
|
%conv = sitofp i32 %mul to float
|
||||||
%0 = load float, float* %x, align 4
|
%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
|
%add = fadd fast float %conv, %addc
|
||||||
%add1 = fadd fast float %0, %add
|
%add1 = fadd fast float %0, %add
|
||||||
%arrayidx3 = getelementptr inbounds float, float* %x, i64 1
|
%arrayidx3 = getelementptr inbounds float, float* %x, i64 1
|
||||||
|
|
Loading…
Reference in New Issue