51 lines · plain
1; RUN: llc < %s2; PR20963 %struct.AVClass = type { ptr, ptr, ptr }4 %struct.AVCodec = type { ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }5 %struct.AVCodecContext = type { ptr, i32, i32, i32, i32, i32, ptr, i32, %struct.AVRational, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, float, float, i32, i32, i32, i32, float, i32, i32, i32, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, [32 x i8], i32, i32, i32, i32, i32, i32, i32, float, i32, ptr, ptr, i32, i32, i32, i32, ptr, ptr, float, float, i32, ptr, i32, ptr, i32, i32, i32, float, float, float, float, i32, float, float, float, float, float, i32, i32, i32, ptr, i32, i32, i32, i32, %struct.AVRational, ptr, i32, i32, [4 x i64], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, ptr, i32, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, float }6 %struct.AVFrame = type { [4 x ptr], [4 x i32], [4 x ptr], i32, i32, i64, i32, i32, i32, i32, i32, ptr, i32, ptr, [2 x ptr], ptr, i8, ptr, [4 x i64], i32, i32, i32, i32, i32, ptr, i32, i32, ptr, [2 x ptr] }7 %struct.AVOption = type opaque8 %struct.AVPaletteControl = type { i32, [256 x i32] }9 %struct.AVPanScan = type { i32, i32, i32, [3 x [2 x i16]] }10 %struct.AVRational = type { i32, i32 }11 %struct.RcOverride = type { i32, i32, i32, float }12 13define i32 @sonic_encode_frame(ptr %avctx, ptr %buf, i32 %buf_size, ptr %data) {14entry:15 switch i32 0, label %bb429 [16 i32 0, label %bb244.preheader17 i32 1, label %bb279.preheader18 ]19 20bb279.preheader: ; preds = %entry21 ret i32 022 23bb244.preheader: ; preds = %entry24 ret i32 025 26bb429: ; preds = %entry27 br i1 false, label %bb.nph1770, label %bb62728 29bb.nph1770: ; preds = %bb42930 br i1 false, label %bb471, label %bb50531 32bb471: ; preds = %bb471, %bb.nph177033 %tmp487 = fadd double 0.000000e+00, 0.000000e+00 ; <double> [#uses=1]34 br i1 false, label %bb505, label %bb47135 36bb505: ; preds = %bb471, %bb.nph177037 %xy.0.lcssa = phi double [ 0.000000e+00, %bb.nph1770 ], [ %tmp487, %bb471 ] ; <double> [#uses=1]38 %tmp507 = fsub double -0.000000e+00, %xy.0.lcssa ; <double> [#uses=1]39 %tmp509 = fdiv double %tmp507, 0.000000e+00 ; <double> [#uses=1]40 %tmp510 = fmul double %tmp509, 1.024000e+03 ; <double> [#uses=1]41 %tmp516 = fdiv double %tmp510, 0.000000e+00 ; <double> [#uses=1]42 %tmp517 = fadd double %tmp516, 5.000000e-01 ; <double> [#uses=1]43 %tmp518 = tail call double @floor( double %tmp517 ) nounwind readnone ; <double> [#uses=0]44 ret i32 045 46bb627: ; preds = %bb42947 ret i32 048}49 50declare double @floor(double) nounwind readnone 51