blob: 0f7bb0b85ee913a21082adb89d095ff5651a222e [file] [log] [blame]
Chris Lattner38aa4752008-01-17 19:47:23 +00001; RUN: llvm-as < %s | llc
2
3define void @foo(double %a, double %b, float* %fp) {
Dan Gohman7ce405e2009-06-04 22:49:04 +00004 %c = fadd double %a, %b
Chris Lattner38aa4752008-01-17 19:47:23 +00005 %d = fptrunc double %c to float
6 store float %d, float* %fp
7 ret void
8}