llvm/llvm/test/CodeGen/Thumb2/2009-08-07-NeonFPBug.ll

; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-a8

	%struct.FILE = type { ptr, i32, i32, i16, i16, %struct.__sbuf, i32, ptr, ptr, ptr, ptr, ptr, %struct.__sbuf, ptr, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 }
	%struct.JHUFF_TBL = type { [17 x i8], [256 x i8], i32 }
	%struct.JQUANT_TBL = type { [64 x i16], i32 }
	%struct.__sFILEX = type opaque
	%struct.__sbuf = type { ptr, i32 }
	%struct.anon = type { [8 x i32], [48 x i8] }
	%struct.backing_store_info = type { ptr, ptr, ptr, ptr, [64 x i8] }
	%struct.jpeg_color_deconverter = type { ptr, ptr }
	%struct.jpeg_color_quantizer = type { ptr, ptr, ptr, ptr }
	%struct.jpeg_common_struct = type { ptr, ptr, ptr, i32, i32 }
	%struct.jpeg_component_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr }
	%struct.jpeg_d_coef_controller = type { ptr, ptr, ptr, ptr, ptr }
	%struct.jpeg_d_main_controller = type { ptr, ptr }
	%struct.jpeg_d_post_controller = type { ptr, ptr }
	%struct.jpeg_decomp_master = type { ptr, ptr, i32 }
	%struct.jpeg_decompress_struct = type { ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], i32, ptr, i32, i32, [16 x i8], [16 x i8], [16 x i8], i32, i32, i8, i16, i16, i32, i8, i32, i32, i32, i32, i32, ptr, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
	%struct.jpeg_entropy_decoder = type { ptr, ptr }
	%struct.jpeg_error_mgr = type { ptr, ptr, ptr, ptr, ptr, i32, %struct.anon, i32, i32, ptr, i32, ptr, i32, i32 }
	%struct.jpeg_input_controller = type { ptr, ptr, ptr, ptr, i32, i32 }
	%struct.jpeg_inverse_dct = type { ptr, [10 x ptr] }
	%struct.jpeg_marker_reader = type { ptr, ptr, ptr, ptr, [16 x ptr], i32, i32, i32, i32 }
	%struct.jpeg_memory_mgr = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
	%struct.jpeg_progress_mgr = type { ptr, i32, i32, i32, i32 }
	%struct.jpeg_source_mgr = type { ptr, i32, ptr, ptr, ptr, ptr, ptr }
	%struct.jpeg_upsampler = type { ptr, ptr, i32 }
	%struct.jvirt_barray_control = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.backing_store_info }
	%struct.jvirt_sarray_control = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.backing_store_info }

define void @jpeg_idct_float(ptr nocapture %cinfo, ptr nocapture %compptr, ptr nocapture %coef_block, ptr nocapture %output_buf, i32 %output_col) nounwind {
entry:
	br label %bb

bb:		; preds = %bb, %entry
	%0 = load float, ptr undef, align 4		; <float> [#uses=1]
	%1 = fmul float undef, %0		; <float> [#uses=2]
	%tmp73 = add i32 0, 224		; <i32> [#uses=1]
	%scevgep74 = getelementptr i8, ptr null, i32 %tmp73		; <ptr> [#uses=1]
	%2 = load float, ptr null, align 4		; <float> [#uses=1]
	%3 = fmul float 0.000000e+00, %2		; <float> [#uses=2]
	%4 = fadd float %1, %3		; <float> [#uses=1]
	%5 = fsub float %1, %3		; <float> [#uses=2]
	%6 = fadd float undef, 0.000000e+00		; <float> [#uses=2]
	%7 = fmul float undef, 0x3FF6A09E60000000		; <float> [#uses=1]
	%8 = fsub float %7, %6		; <float> [#uses=2]
	%9 = fsub float %4, %6		; <float> [#uses=1]
	%10 = fadd float %5, %8		; <float> [#uses=2]
	%11 = fsub float %5, %8		; <float> [#uses=1]
	%12 = sitofp i16 undef to float		; <float> [#uses=1]
	%13 = fmul float %12, 0.000000e+00		; <float> [#uses=2]
	%14 = sitofp i16 undef to float		; <float> [#uses=1]
	%15 = load float, ptr %scevgep74, align 4		; <float> [#uses=1]
	%16 = fmul float %14, %15		; <float> [#uses=2]
	%17 = fadd float undef, undef		; <float> [#uses=2]
	%18 = fadd float %13, %16		; <float> [#uses=2]
	%19 = fsub float %13, %16		; <float> [#uses=1]
	%20 = fadd float %18, %17		; <float> [#uses=2]
	%21 = fsub float %18, %17		; <float> [#uses=1]
	%22 = fmul float %21, 0x3FF6A09E60000000		; <float> [#uses=1]
	%23 = fmul float undef, 0x3FFD906BC0000000		; <float> [#uses=2]
	%24 = fmul float %19, 0x3FF1517A80000000		; <float> [#uses=1]
	%25 = fsub float %24, %23		; <float> [#uses=1]
	%26 = fadd float undef, %23		; <float> [#uses=1]
	%27 = fsub float %26, %20		; <float> [#uses=3]
	%28 = fsub float %22, %27		; <float> [#uses=2]
	%29 = fadd float %25, %28		; <float> [#uses=1]
	%30 = fadd float undef, %20		; <float> [#uses=1]
	store float %30, ptr undef, align 4
	%31 = fadd float %10, %27		; <float> [#uses=1]
	store float %31, ptr undef, align 4
	%32 = fsub float %10, %27		; <float> [#uses=1]
	store float %32, ptr undef, align 4
	%33 = fadd float %11, %28		; <float> [#uses=1]
	store float %33, ptr undef, align 4
	%34 = fsub float %9, %29		; <float> [#uses=1]
	store float %34, ptr undef, align 4
	br label %bb
}