Relax dwarf line fragments. This fixes a crash in the included testcase.
[oota-llvm.git] / test / CodeGen / Thumb2 / cross-rc-coalescing-2.ll
1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin9 -mcpu=cortex-a8 | FileCheck %s
2
3 define void @fht(float* nocapture %fz, i16 signext %n) nounwind {
4 ; CHECK: fht:
5 entry:
6   br label %bb5
7
8 bb5:                                              ; preds = %bb5, %entry
9 ; CHECK: %bb5
10 ; CHECK: bne
11   br i1 undef, label %bb5, label %bb.nph
12
13 bb.nph:                                           ; preds = %bb5
14   br label %bb7
15
16 ; Loop preheader
17 ; CHECK: vmov.f32
18 ; CHECK: vsub.f32
19 ; CHECK: vadd.f32
20 ; CHECK: vmul.f32
21 bb7:                                              ; preds = %bb9, %bb.nph
22   %s1.02 = phi float [ undef, %bb.nph ], [ %35, %bb9 ] ; <float> [#uses=3]
23   %tmp79 = add i32 undef, undef                   ; <i32> [#uses=1]
24   %tmp53 = sub i32 undef, undef                   ; <i32> [#uses=1]
25   %0 = fadd float 0.000000e+00, 1.000000e+00      ; <float> [#uses=2]
26   %1 = fmul float 0.000000e+00, 0.000000e+00      ; <float> [#uses=2]
27   br label %bb8
28
29 bb8:                                              ; preds = %bb8, %bb7
30 ; CHECK: %bb8
31 ; CHECK-NOT: vmov.f32
32 ; CHECK: blt
33   %tmp54 = add i32 0, %tmp53                      ; <i32> [#uses=0]
34   %fi.1 = getelementptr float* %fz, i32 undef     ; <float*> [#uses=2]
35   %tmp80 = add i32 0, %tmp79                      ; <i32> [#uses=1]
36   %scevgep81 = getelementptr float* %fz, i32 %tmp80 ; <float*> [#uses=1]
37   %2 = load float* undef, align 4                 ; <float> [#uses=1]
38   %3 = fmul float %2, %1                          ; <float> [#uses=1]
39   %4 = load float* null, align 4                  ; <float> [#uses=2]
40   %5 = fmul float %4, %0                          ; <float> [#uses=1]
41   %6 = fsub float %3, %5                          ; <float> [#uses=1]
42   %7 = fmul float %4, %1                          ; <float> [#uses=1]
43   %8 = fadd float undef, %7                       ; <float> [#uses=2]
44   %9 = load float* %fi.1, align 4                 ; <float> [#uses=2]
45   %10 = fsub float %9, %8                         ; <float> [#uses=1]
46   %11 = fadd float %9, %8                         ; <float> [#uses=1]
47   %12 = fsub float 0.000000e+00, %6               ; <float> [#uses=1]
48   %13 = fsub float 0.000000e+00, undef            ; <float> [#uses=2]
49   %14 = fmul float undef, %0                      ; <float> [#uses=1]
50   %15 = fadd float %14, undef                     ; <float> [#uses=2]
51   %16 = load float* %scevgep81, align 4           ; <float> [#uses=2]
52   %17 = fsub float %16, %15                       ; <float> [#uses=1]
53   %18 = fadd float %16, %15                       ; <float> [#uses=2]
54   %19 = load float* undef, align 4                ; <float> [#uses=2]
55   %20 = fsub float %19, %13                       ; <float> [#uses=2]
56   %21 = fadd float %19, %13                       ; <float> [#uses=1]
57   %22 = fmul float %s1.02, %18                    ; <float> [#uses=1]
58   %23 = fmul float 0.000000e+00, %20              ; <float> [#uses=1]
59   %24 = fsub float %22, %23                       ; <float> [#uses=1]
60   %25 = fmul float 0.000000e+00, %18              ; <float> [#uses=1]
61   %26 = fmul float %s1.02, %20                    ; <float> [#uses=1]
62   %27 = fadd float %25, %26                       ; <float> [#uses=1]
63   %28 = fadd float %11, %27                       ; <float> [#uses=1]
64   store float %28, float* %fi.1, align 4
65   %29 = fadd float %12, %24                       ; <float> [#uses=1]
66   store float %29, float* null, align 4
67   %30 = fmul float 0.000000e+00, %21              ; <float> [#uses=1]
68   %31 = fmul float %s1.02, %17                    ; <float> [#uses=1]
69   %32 = fsub float %30, %31                       ; <float> [#uses=1]
70   %33 = fsub float %10, %32                       ; <float> [#uses=1]
71   store float %33, float* undef, align 4
72   %34 = icmp slt i32 undef, undef                 ; <i1> [#uses=1]
73   br i1 %34, label %bb8, label %bb9
74
75 bb9:                                              ; preds = %bb8
76 ; CHECK: %bb9
77 ; CHECK: vmov.f32
78   %35 = fadd float 0.000000e+00, undef            ; <float> [#uses=1]
79   br label %bb7
80 }