[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AsmParser / floating-literals.s
blobd3a2321e16fb836b7f3d80c5e2e8c953401db90c
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.
51 # CHECK: .quad 4611686018427387904
52 .double 2.e
53 # CHECK: .quad 4611686018427387904
54 .double 2.e+
55 # CHECK: .quad 4611686018427387904
56 .double 2.e-
57 # CHECK: .quad -4615288898129284301
58 .double -1.2e
59 # CHECK: .quad 4621819117588971520
60 .double 1e1
61 # CHECK: .quad 4591870180066957722
62 .double 1e-1
65 # CHECK: .quad -4570379565595099136
66 .double -1.2E3
67 # CHECK: .quad -4690170861623122860
68 .double -1.2E-5
69 # CHECK: .quad -4465782973978902528
70 .double -1.2E+10
71 # CHECK: .quad 4681608360884174848
72 .double 1E5
73 # CHECK: .quad 4681608360884174848
74 .double 1.E5
75 # CHECK: .quad 4611686018427387904
76 .double 2.E
77 # CHECK: .quad 4611686018427387904
78 .double 2.E+
79 # CHECK: .quad 4611686018427387904
80 .double 2.E-
81 # CHECK: .quad -4615288898129284301
82 .double -1.2E
83 # CHECK: .quad 4621819117588971520
84 .double 1E1
85 # CHECK: .quad 4591870180066957722
86 .double 1E-1
89 #CHECK-ERROR: unexpected token in '.double' directive
90 .double 1e1e
91 # CHECK-ERROR: Invalid sign in float literal
92 .double 2.+1
94 # CHECK: .long 1310177520
95 .float 0x12f7.1ep+17
96 # CHECK: .long 1084227584
97 .float 0x.ap+3
98 # CHECK: .quad 4602678819172646912
99 .double 0x2.p-2
100 # CHECK: .long 1094713344
101 .float 0x3p2
102 # CHECK: .long 872284160
103 .float 0x7fp-30
104 # CHECK: .long 3212836864
105 .float -0x1.0p0
107 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
108 .float 0xa.apa
110 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
111 .double -0x1.2p+
113 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
114 .double -0x1.2p
116 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
117 .float 0xp2
119 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
120 .float 0x.p5
122 # CHECK-ERROR: error: invalid hexadecimal floating-point constant: expected exponent part 'p'
123 .float 0x1.2