]> granicus.if.org Git - llvm/commitdiff
AsmParser: test .double NaN and .double inf
authorJF Bastien <jfbastien@apple.com>
Mon, 17 Dec 2018 18:54:22 +0000 (18:54 +0000)
committerJF Bastien <jfbastien@apple.com>
Mon, 17 Dec 2018 18:54:22 +0000 (18:54 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349376 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/AsmParser/floating-literals.s

index de0b4ca0640103e29dda0eb30f31236d49e25ec1..9dca77f8ea02aee8181c2e5312899af38807fa96 100644 (file)
 # 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