From 1d460eb52e206f920eae86c81370784713513a9b Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Mon, 17 Dec 2018 18:54:22 +0000 Subject: [PATCH] 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 --- llvm/test/MC/AsmParser/floating-literals.s | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/llvm/test/MC/AsmParser/floating-literals.s b/llvm/test/MC/AsmParser/floating-literals.s index de0b4ca..9dca77f 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 -- 2.7.4