diff options
Diffstat (limited to 'test/CodeGen/X86/fp-immediate-shorten.ll')
-rw-r--r-- | test/CodeGen/X86/fp-immediate-shorten.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fp-immediate-shorten.ll b/test/CodeGen/X86/fp-immediate-shorten.ll new file mode 100644 index 0000000..73c184b --- /dev/null +++ b/test/CodeGen/X86/fp-immediate-shorten.ll @@ -0,0 +1,6 @@ +;; Test that this FP immediate is stored in the constant pool as a float. + +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=-sse2,-sse3 | \ +; RUN: grep {.long.1123418112} + +double %D() { ret double 123.0 } |