76 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- -mattr=+sse2 | FileCheck %s3 4define fastcc void @fht(ptr %fz, i16 signext %n) {5; CHECK-LABEL: fht:6; CHECK: # %bb.0: # %entry7; CHECK-NEXT: movss {{.*#+}} xmm3 = mem[0],zero,zero,zero8; CHECK-NEXT: xorps %xmm0, %xmm09; CHECK-NEXT: xorps %xmm1, %xmm110; CHECK-NEXT: subss %xmm3, %xmm111; CHECK-NEXT: movaps %xmm3, %xmm412; CHECK-NEXT: mulss %xmm0, %xmm413; CHECK-NEXT: addss %xmm3, %xmm414; CHECK-NEXT: movaps %xmm3, %xmm215; CHECK-NEXT: subss %xmm4, %xmm216; CHECK-NEXT: addss %xmm3, %xmm417; CHECK-NEXT: xorps %xmm5, %xmm518; CHECK-NEXT: subss %xmm1, %xmm519; CHECK-NEXT: addss %xmm0, %xmm120; CHECK-NEXT: mulss %xmm0, %xmm421; CHECK-NEXT: mulss %xmm0, %xmm522; CHECK-NEXT: addss %xmm4, %xmm523; CHECK-NEXT: addss %xmm0, %xmm524; CHECK-NEXT: movss %xmm5, 025; CHECK-NEXT: movss %xmm3, (%ecx)26; CHECK-NEXT: addss %xmm0, %xmm327; CHECK-NEXT: movss %xmm3, 028; CHECK-NEXT: mulss %xmm0, %xmm129; CHECK-NEXT: mulss %xmm0, %xmm230; CHECK-NEXT: addss %xmm1, %xmm231; CHECK-NEXT: addss %xmm0, %xmm232; CHECK-NEXT: movss %xmm2, (%ecx)33; CHECK-NEXT: retl34entry:35 br i1 true, label %bb171.preheader, label %bb43136 37bb171.preheader: ; preds = %entry38 %tmp176 = fadd float 0.000000e+00, 1.000000e+00 ; <float> [#uses=2]39 %gi.1 = getelementptr float, ptr %fz, i32 0 ; <ptr> [#uses=2]40 %tmp240 = load float, ptr %gi.1, align 4 ; <float> [#uses=1]41 %tmp242 = fsub float %tmp240, 0.000000e+00 ; <float> [#uses=2]42 %tmp251 = getelementptr float, ptr %fz, i32 0 ; <ptr> [#uses=1]43 %tmp252 = load float, ptr %tmp251, align 4 ; <float> [#uses=1]44 %tmp258 = getelementptr float, ptr %fz, i32 0 ; <ptr> [#uses=2]45 %tmp259 = load float, ptr %tmp258, align 4 ; <float> [#uses=2]46 %tmp261 = fmul float %tmp259, %tmp176 ; <float> [#uses=1]47 %tmp262 = fsub float 0.000000e+00, %tmp261 ; <float> [#uses=2]48 %tmp269 = fmul float %tmp252, %tmp176 ; <float> [#uses=1]49 %tmp276 = fmul float %tmp259, 0.000000e+00 ; <float> [#uses=1]50 %tmp277 = fadd float %tmp269, %tmp276 ; <float> [#uses=2]51 %tmp281 = getelementptr float, ptr %fz, i32 0 ; <ptr> [#uses=1]52 %tmp282 = load float, ptr %tmp281, align 4 ; <float> [#uses=2]53 %tmp284 = fsub float %tmp282, %tmp277 ; <float> [#uses=1]54 %tmp291 = fadd float %tmp282, %tmp277 ; <float> [#uses=1]55 %tmp298 = fsub float 0.000000e+00, %tmp262 ; <float> [#uses=1]56 %tmp305 = fadd float 0.000000e+00, %tmp262 ; <float> [#uses=1]57 %tmp315 = fmul float 0.000000e+00, %tmp291 ; <float> [#uses=1]58 %tmp318 = fmul float 0.000000e+00, %tmp298 ; <float> [#uses=1]59 %tmp319 = fadd float %tmp315, %tmp318 ; <float> [#uses=1]60 %tmp329 = fadd float 0.000000e+00, %tmp319 ; <float> [#uses=1]61 store float %tmp329, ptr null, align 462 %tmp336 = fsub float %tmp242, 0.000000e+00 ; <float> [#uses=1]63 store float %tmp336, ptr %tmp258, align 464 %tmp343 = fadd float %tmp242, 0.000000e+00 ; <float> [#uses=1]65 store float %tmp343, ptr null, align 466 %tmp355 = fmul float 0.000000e+00, %tmp305 ; <float> [#uses=1]67 %tmp358 = fmul float 0.000000e+00, %tmp284 ; <float> [#uses=1]68 %tmp359 = fadd float %tmp355, %tmp358 ; <float> [#uses=1]69 %tmp369 = fadd float 0.000000e+00, %tmp359 ; <float> [#uses=1]70 store float %tmp369, ptr %gi.1, align 471 ret void72 73bb431: ; preds = %entry74 ret void75}76