llvm-mirror/test/CodeGen/Generic/storetrunc-fp.ll
Chris Lattner adb8aeaf6a new testcase.
llvm-svn: 46139
2008-01-17 19:47:23 +00:00

9 lines
177 B
LLVM

; RUN: llvm-as < %s | llc
define void @foo(double %a, double %b, float* %fp) {
%c = add double %a, %b
%d = fptrunc double %c to float
store float %d, float* %fp
ret void
}