summaryrefslogtreecommitdiff
path: root/test/CodeGen/MSP430/2009-05-19-DoubleSplit.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/MSP430/2009-05-19-DoubleSplit.ll')
-rw-r--r--test/CodeGen/MSP430/2009-05-19-DoubleSplit.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/MSP430/2009-05-19-DoubleSplit.ll b/test/CodeGen/MSP430/2009-05-19-DoubleSplit.ll
new file mode 100644
index 000000000000..20050e93ac9b
--- /dev/null
+++ b/test/CodeGen/MSP430/2009-05-19-DoubleSplit.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=msp430
+
+define i16 @test(double %d) nounwind {
+entry:
+ %add = add double %d, 1.000000e+00
+ %call = tail call i16 @funct(double %add) nounwind
+ ret i16 %call
+}
+
+declare i16 @funct(double)
+