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
13 # CHECK: .quad 9218868437227405312
16 # CHECK: .long 4286578688
19 # CHECK: .quad -4503599627370496
22 # CHECK: .long 2147483647
25 # CHECK: .quad 9223372036854775807
28 # CHECK: .long 1067928519
31 # CHECK: .quad 4617315517961601024
32 # CHECK: .quad 4597526701198935065
33 # CHECK: .quad -4600933674317040845
34 .double 5, .232, -11.1
39 # CHECK: .quad -4570379565595099136
41 # CHECK: .quad -4690170861623122860
43 # CHECK: .quad -4465782973978902528
45 # CHECK: .quad 4681608360884174848
47 # CHECK: .quad 4681608360884174848
49 # CHECK: .quad 4611686018427387904
52 // APFloat should reject these with an error
, not crash
:
56 # CHECK: .long 1310177520
58 # CHECK: .long 1084227584
60 # CHECK: .quad 4602678819172646912
62 # CHECK: .long 1094713344
64 # CHECK: .long 872284160
66 # CHECK: .long 3212836864
69 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
72 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
75 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
78 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
81 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
84 # CHECK-ERROR: error: invalid hexadecimal floating-point constant: expected exponent part 'p'