summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorJF Bastien <jfbastien@apple.com>2018-12-17 18:54:22 +0000
committerJF Bastien <jfbastien@apple.com>2018-12-17 18:54:22 +0000
commit1d460eb52e206f920eae86c81370784713513a9b (patch)
tree106b038cac4ef5f2acd1e554e1a9572eefca43f6 /llvm/test
parent1fa7aaf5a7c1a860083c60c103718a7bcc5dcb0a (diff)
downloadbcm5719-llvm-1d460eb52e206f920eae86c81370784713513a9b.tar.gz
bcm5719-llvm-1d460eb52e206f920eae86c81370784713513a9b.zip
AsmParser: test .double NaN and .double inf
Summary: It looks like this support was added to match GNU AS, but only tests .float and not .double. I asked RedHat folks to confirm that 0x7fffffffffffffff was indeed the right value for NaN. Same for infinity, but it only has positive / negative encodings. Reviewers: scanon, rjmccall Subscribers: jkorous, dexonsmith, llvm-commits Differential Revision: https://reviews.llvm.org/D55531 llvm-svn: 349376
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/AsmParser/floating-literals.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/floating-literals.s b/llvm/test/MC/AsmParser/floating-literals.s
index de0b4ca0640..9dca77f8ea0 100644
--- a/llvm/test/MC/AsmParser/floating-literals.s
+++ b/llvm/test/MC/AsmParser/floating-literals.s
@@ -10,12 +10,21 @@
# CHECK: .long 2139095040
.single InFinIty
+# CHECK: .quad 9218868437227405312
+.double infinity
+
# CHECK: .long 4286578688
.single -iNf
+# CHECK: .quad -4503599627370496
+.double -inf
+
# CHECK: .long 2147483647
.single nAN
+# CHECK: .quad 9223372036854775807
+.double NaN
+
# CHECK: .long 1067928519
.float 1.307
OpenPOWER on IntegriCloud