Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / MC / AsmParser / floating-literals.s
blob9dca77f8ea02aee8181c2e5312899af38807fa96
1 # RUN: not llvm-mc -triple i386-unknown-unknown %s 2> /dev/null | FileCheck %s
2 # RUN: not llvm-mc -triple i386-unknown-unknown %s 2>&1 > /dev/null| FileCheck %s --check-prefix=CHECK-ERROR
4 # CHECK: .long 1067412619
5 # CHECK: .long 1075000115
6 # CHECK: .long 1077936128
7 # CHECK: .long 1082549862
8 .single 1.2455, +2.3, 3, + 4.2
10 # CHECK: .long 2139095040
11 .single InFinIty
13 # CHECK: .quad 9218868437227405312
14 .double infinity
16 # CHECK: .long 4286578688
17 .single -iNf
19 # CHECK: .quad -4503599627370496
20 .double -inf
22 # CHECK: .long 2147483647
23 .single nAN
25 # CHECK: .quad 9223372036854775807
26 .double NaN
28 # CHECK: .long 1067928519
29 .float 1.307
31 # CHECK: .quad 4617315517961601024
32 # CHECK: .quad 4597526701198935065
33 # CHECK: .quad -4600933674317040845
34 .double 5, .232, -11.1
36 # CHECK: .quad 0
37 .double 0.0
39 # CHECK: .quad -4570379565595099136
40 .double -1.2e3
41 # CHECK: .quad -4690170861623122860
42 .double -1.2e-5
43 # CHECK: .quad -4465782973978902528
44 .double -1.2e+10
45 # CHECK: .quad 4681608360884174848
46 .double 1e5
47 # CHECK: .quad 4681608360884174848
48 .double 1.e5
49 # CHECK: .quad 4611686018427387904
50 .double 2.
52 // APFloat should reject these with an error, not crash:
53 //.double -1.2e+
54 //.double -1.2e
56 # CHECK: .long 1310177520
57 .float 0x12f7.1ep+17
58 # CHECK: .long 1084227584
59 .float 0x.ap+3
60 # CHECK: .quad 4602678819172646912
61 .double 0x2.p-2
62 # CHECK: .long 1094713344
63 .float 0x3p2
64 # CHECK: .long 872284160
65 .float 0x7fp-30
66 # CHECK: .long 3212836864
67 .float -0x1.0p0
69 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
70 .float 0xa.apa
72 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
73 .double -0x1.2p+
75 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
76 .double -0x1.2p
78 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
79 .float 0xp2
81 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
82 .float 0x.p5
84 # CHECK-ERROR: error: invalid hexadecimal floating-point constant: expected exponent part 'p'
85 .float 0x1.2