blob: e3c23ac025f4c451eeae1b6ef33bab14160b194c [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -mtriple=armv7-eabi -mattr=+vfp2
Jakob Stoklund Olesendffb0512009-08-08 13:18:47 +00002; PR4686
3
4@g_d = external global double ; <double*> [#uses=1]
5
Rafael Espindola2ebb4f82010-06-15 19:04:29 +00006define void @foo(float %yIncr) {
Jakob Stoklund Olesendffb0512009-08-08 13:18:47 +00007entry:
8 br i1 undef, label %bb, label %bb4
9
10bb: ; preds = %entry
11 %0 = call arm_aapcs_vfpcc float @bar() ; <float> [#uses=1]
12 %1 = fpext float %0 to double ; <double> [#uses=1]
13 store double %1, double* @g_d, align 8
14 br label %bb4
15
16bb4: ; preds = %bb, %entry
17 unreachable
18}
19
20declare arm_aapcs_vfpcc float @bar()