diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-24 01:59:56 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-24 01:59:56 +0000 |
commit | b95a079cae7bd5232d17be8a095fa63fe84f4e44 (patch) | |
tree | f2f1cd53d77bde9598e1318700f77e74f247fa08 /test/MC/AsmParser | |
parent | 54f0a625b0eb9afeece652a8462755010d237c78 (diff) | |
download | external_llvm-b95a079cae7bd5232d17be8a095fa63fe84f4e44.zip external_llvm-b95a079cae7bd5232d17be8a095fa63fe84f4e44.tar.gz external_llvm-b95a079cae7bd5232d17be8a095fa63fe84f4e44.tar.bz2 |
MC/AsmParser: Support .single and .double for embedding floating point literals.
- I believe more modern 'gas' supports a more enhanced set of arithmetic on
them, but for now the only thing we can do is emit them as data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser')
-rw-r--r-- | test/MC/AsmParser/floating-literals.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/AsmParser/floating-literals.s b/test/MC/AsmParser/floating-literals.s new file mode 100644 index 0000000..44f8a5a --- /dev/null +++ b/test/MC/AsmParser/floating-literals.s @@ -0,0 +1,12 @@ +# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s + +# CHECK: .long 1067412619 +# CHECK: .long 1075000115 +# CHECK: .long 1077936128 +# CHECK: .long 1082549862 +.single 1.2455, +2.3, 3, + 4.2 + +# CHECK: .quad 4617315517961601024 +# CHECK: .quad 4597526701198935065 +# CHECK: .quad -4600933674317040845 +.double 5, .232, -11.1 |