From: JF Bastien Date: Mon, 17 Dec 2018 18:54:22 +0000 (+0000) Subject: AsmParser: test .double NaN and .double inf X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a54a3917dc943a161ad3fa743322b84b85995d9d;p=llvm 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349376 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/AsmParser/floating-literals.s b/test/MC/AsmParser/floating-literals.s index de0b4ca0640..9dca77f8ea0 100644 --- a/test/MC/AsmParser/floating-literals.s +++ b/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