From 009b1c42aa6266385f2c37e227516b24077e6dd7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:52:33 +0000 Subject: Import LLVM, at r72732. --- test/CodeGen/Generic/storetrunc-fp.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGen/Generic/storetrunc-fp.ll (limited to 'test/CodeGen/Generic/storetrunc-fp.ll') diff --git a/test/CodeGen/Generic/storetrunc-fp.ll b/test/CodeGen/Generic/storetrunc-fp.ll new file mode 100644 index 000000000000..710a9907e018 --- /dev/null +++ b/test/CodeGen/Generic/storetrunc-fp.ll @@ -0,0 +1,8 @@ +; 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 +} -- cgit v1.3