File: 2009-09-27-CoalescerBug.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 (24 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (43)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; RUN: llc < %s -mtriple=armv7-eabi -mcpu=cortex-a8
; PR5055

module asm ".globl\09__aeabi_f2lz"
module asm ".set\09__aeabi_f2lz, __fixsfdi"
module asm ""

define arm_aapcs_vfpcc i64 @__fixsfdi(float %a) nounwind {
entry:
  %0 = fcmp olt float %a, 0.000000e+00            ; <i1> [#uses=1]
  br i1 %0, label %bb, label %bb1

bb:                                               ; preds = %entry
  %1 = fsub float -0.000000e+00, %a               ; <float> [#uses=1]
  %2 = tail call arm_aapcs_vfpcc  i64 @__fixunssfdi(float %1) nounwind ; <i64> [#uses=1]
  %3 = sub i64 0, %2                              ; <i64> [#uses=1]
  ret i64 %3

bb1:                                              ; preds = %entry
  %4 = tail call arm_aapcs_vfpcc  i64 @__fixunssfdi(float %a) nounwind ; <i64> [#uses=1]
  ret i64 %4
}

declare arm_aapcs_vfpcc i64 @__fixunssfdi(float)