Add a testcase I forgot to commit earlier.
authorChris Lattner <sabre@nondot.org>
Fri, 7 Jan 2005 07:56:08 +0000 (07:56 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Jan 2005 07:56:08 +0000 (07:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19338 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/fp-immediate-shorten.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/fp-immediate-shorten.ll b/test/CodeGen/X86/fp-immediate-shorten.ll
new file mode 100644 (file)
index 0000000..5a19f92
--- /dev/null
@@ -0,0 +1,5 @@
+;; Test that this FP immediate is stored in the constant pool as a float.
+
+; RUN: llvm-as < %s | llc -march=x86 | grep '.long.1123418112'
+
+double %D() { ret double 123.0 }