diff --git a/test/CodeGen/X86/fp-immediate-shorten.ll b/test/CodeGen/X86/fp-immediate-shorten.ll new file mode 100644 index 00000000000..5a19f92d329 --- /dev/null +++ b/test/CodeGen/X86/fp-immediate-shorten.ll @@ -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 }