1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- -mattr=+sse2 | FileCheck %s
4 define fastcc void @fht(ptr %fz, i16 signext %n) {
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: movss {{.*#+}} xmm3 = mem[0],zero,zero,zero
8 ; CHECK-NEXT: xorps %xmm0, %xmm0
9 ; CHECK-NEXT: xorps %xmm1, %xmm1
10 ; CHECK-NEXT: subss %xmm3, %xmm1
11 ; CHECK-NEXT: movaps %xmm3, %xmm4
12 ; CHECK-NEXT: mulss %xmm0, %xmm4
13 ; CHECK-NEXT: addss %xmm3, %xmm4
14 ; CHECK-NEXT: movaps %xmm3, %xmm2
15 ; CHECK-NEXT: subss %xmm4, %xmm2
16 ; CHECK-NEXT: addss %xmm3, %xmm4
17 ; CHECK-NEXT: xorps %xmm5, %xmm5
18 ; CHECK-NEXT: subss %xmm1, %xmm5
19 ; CHECK-NEXT: addss %xmm0, %xmm1
20 ; CHECK-NEXT: mulss %xmm0, %xmm4
21 ; CHECK-NEXT: mulss %xmm0, %xmm5
22 ; CHECK-NEXT: addss %xmm4, %xmm5
23 ; CHECK-NEXT: addss %xmm0, %xmm5
24 ; CHECK-NEXT: movss %xmm5, 0
25 ; CHECK-NEXT: movss %xmm3, (%ecx)
26 ; CHECK-NEXT: addss %xmm0, %xmm3
27 ; CHECK-NEXT: movss %xmm3, 0
28 ; CHECK-NEXT: mulss %xmm0, %xmm1
29 ; CHECK-NEXT: mulss %xmm0, %xmm2
30 ; CHECK-NEXT: addss %xmm1, %xmm2
31 ; CHECK-NEXT: addss %xmm0, %xmm2
32 ; CHECK-NEXT: movss %xmm2, (%ecx)
35 br i1 true, label %bb171.preheader, label %bb431
37 bb171.preheader: ; preds = %entry
38 %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 4
62 %tmp336 = fsub float %tmp242, 0.000000e+00 ; <float> [#uses=1]
63 store float %tmp336, ptr %tmp258, align 4
64 %tmp343 = fadd float %tmp242, 0.000000e+00 ; <float> [#uses=1]
65 store float %tmp343, ptr null, align 4
66 %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 4
73 bb431: ; preds = %entry