File: 2012-04-10-DAGCombine.ll

package info (click to toggle)
llvm-toolchain-3.5 1%3A3.5-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 282,028 kB
  • ctags: 310,872
  • sloc: cpp: 1,883,926; ansic: 310,731; objc: 86,612; python: 79,565; asm: 65,844; sh: 9,829; makefile: 6,057; perl: 5,589; ml: 5,254; pascal: 3,285; lisp: 1,640; xml: 686; cs: 239; csh: 117
file content (28 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download | duplicates (22)
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
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a9 -enable-unsafe-fp-math %s -o /dev/null
;target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32-S64"
;target triple = "armv7-none-linux-gnueabi"

define arm_aapcs_vfpcc void @foo(<4 x float> %arg) nounwind align 2 {
bb4:
  %tmp = extractelement <2 x float> undef, i32 0
  br i1 undef, label %bb18, label %bb5

bb5:                                              ; preds = %bb4
  %tmp6 = fadd float %tmp, -1.500000e+01
  %tmp7 = fdiv float %tmp6, 2.000000e+01
  %tmp8 = fadd float %tmp7, 1.000000e+00
  %tmp9 = fdiv float 1.000000e+00, %tmp8
  %tmp10 = fsub float 1.000000e+00, %tmp9
  %tmp11 = fmul float %tmp10, 1.000000e+01
  %tmp12 = fadd float %tmp11, 1.500000e+01
  %tmp13 = fdiv float %tmp12, %tmp
  %tmp14 = insertelement <2 x float> undef, float %tmp13, i32 0
  %tmp15 = shufflevector <2 x float> %tmp14, <2 x float> undef, <4 x i32> zeroinitializer
  %tmp16 = fmul <4 x float> zeroinitializer, %tmp15
  %tmp17 = fadd <4 x float> %tmp16, %arg
  store <4 x float> %tmp17, <4 x float>* undef, align 8
  br label %bb18

bb18:                                             ; preds = %bb5, %bb4
  ret void
}