2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s
|
2008-01-18 03:47:23 +08:00
|
|
|
|
|
|
|
define void @foo(double %a, double %b, float* %fp) {
|
2009-06-05 06:49:04 +08:00
|
|
|
%c = fadd double %a, %b
|
2008-01-18 03:47:23 +08:00
|
|
|
%d = fptrunc double %c to float
|
|
|
|
store float %d, float* %fp
|
|
|
|
ret void
|
|
|
|
}
|