forked from OSchip/llvm-project
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
This commit is contained in:
parent
1fa7aaf5a7
commit
1d460eb52e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue