~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/Thumb2/ifcvt-neon.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -march=thumb -mcpu=cortex-a8 | FileCheck %s
 
2
; rdar://7368193
 
3
 
 
4
@a = common global float 0.000000e+00             ; <float*> [#uses=2]
 
5
@b = common global float 0.000000e+00             ; <float*> [#uses=1]
 
6
 
 
7
define float @t(i32 %c) nounwind {
 
8
entry:
 
9
  %0 = icmp sgt i32 %c, 1                         ; <i1> [#uses=1]
 
10
  %1 = load float* @a, align 4                    ; <float> [#uses=2]
 
11
  %2 = load float* @b, align 4                    ; <float> [#uses=2]
 
12
  br i1 %0, label %bb, label %bb1
 
13
 
 
14
bb:                                               ; preds = %entry
 
15
; CHECK:      ite lt
 
16
; CHECK:      vsublt.f32
 
17
; CHECK-NEXT: vaddge.f32
 
18
  %3 = fadd float %1, %2                          ; <float> [#uses=1]
 
19
  br label %bb2
 
20
 
 
21
bb1:                                              ; preds = %entry
 
22
  %4 = fsub float %1, %2                          ; <float> [#uses=1]
 
23
  br label %bb2
 
24
 
 
25
bb2:                                              ; preds = %bb1, %bb
 
26
  %storemerge = phi float [ %4, %bb1 ], [ %3, %bb ] ; <float> [#uses=2]
 
27
  store float %storemerge, float* @a
 
28
  ret float %storemerge
 
29
}