2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -mtriple=armv7-eabi -mattr=+vfp2
|
2009-08-08 21:18:47 +08:00
|
|
|
; PR4686
|
|
|
|
|
|
|
|
@g_d = external global double ; <double*> [#uses=1]
|
|
|
|
|
2010-06-16 03:04:29 +08:00
|
|
|
define void @foo(float %yIncr) {
|
2009-08-08 21:18:47 +08:00
|
|
|
entry:
|
|
|
|
br i1 undef, label %bb, label %bb4
|
|
|
|
|
|
|
|
bb: ; preds = %entry
|
|
|
|
%0 = call arm_aapcs_vfpcc float @bar() ; <float> [#uses=1]
|
|
|
|
%1 = fpext float %0 to double ; <double> [#uses=1]
|
|
|
|
store double %1, double* @g_d, align 8
|
|
|
|
br label %bb4
|
|
|
|
|
|
|
|
bb4: ; preds = %bb, %entry
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
declare arm_aapcs_vfpcc float @bar()
|