File: ifcvt-neon.ll

package info (click to toggle)
llvm-2.7 2.7-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 59,992 kB
  • ctags: 49,499
  • sloc: cpp: 373,792; ansic: 16,885; sh: 12,614; asm: 6,809; ada: 3,083; ml: 2,942; python: 2,671; perl: 2,404; makefile: 1,691; pascal: 1,235; exp: 399; objc: 291; lisp: 184; csh: 117; xml: 38; f90: 36
file content (29 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
; RUN: llc < %s -march=thumb -mcpu=cortex-a8 | FileCheck %s
; rdar://7368193

@a = common global float 0.000000e+00             ; <float*> [#uses=2]
@b = common global float 0.000000e+00             ; <float*> [#uses=1]

define arm_apcscc float @t(i32 %c) nounwind {
entry:
  %0 = icmp sgt i32 %c, 1                         ; <i1> [#uses=1]
  %1 = load float* @a, align 4                    ; <float> [#uses=2]
  %2 = load float* @b, align 4                    ; <float> [#uses=2]
  br i1 %0, label %bb, label %bb1

bb:                                               ; preds = %entry
; CHECK:      ite lt
; CHECK:      vsublt.f32
; CHECK-NEXT: vaddge.f32
  %3 = fadd float %1, %2                          ; <float> [#uses=1]
  br label %bb2

bb1:                                              ; preds = %entry
  %4 = fsub float %1, %2                          ; <float> [#uses=1]
  br label %bb2

bb2:                                              ; preds = %bb1, %bb
  %storemerge = phi float [ %4, %bb1 ], [ %3, %bb ] ; <float> [#uses=2]
  store float %storemerge, float* @a
  ret float %storemerge
}