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