reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
# RUN: not llvm-mc -triple i386-unknown-unknown %s 2> /dev/null | FileCheck %s
# RUN: not llvm-mc -triple i386-unknown-unknown %s 2>&1 > /dev/null| FileCheck %s --check-prefix=CHECK-ERROR

# CHECK: .long	1067412619
# CHECK: .long	1075000115
# CHECK: .long	1077936128
# CHECK: .long	1082549862
.single 1.2455, +2.3, 3, + 4.2

# 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

# CHECK: .quad	4617315517961601024
# CHECK: .quad	4597526701198935065
# CHECK: .quad	-4600933674317040845
.double 5, .232, -11.1

# CHECK: .quad  0
.double 0.0

# CHECK: .quad  -4570379565595099136
.double -1.2e3
# CHECK: .quad  -4690170861623122860
.double -1.2e-5
# CHECK: .quad  -4465782973978902528
.double -1.2e+10
# CHECK: .quad  4681608360884174848
.double 1e5
# CHECK: .quad  4681608360884174848
.double 1.e5
# CHECK: .quad  4611686018427387904
.double 2.
# CHECK: .quad  4611686018427387904
.double 2.e
# CHECK: .quad  4611686018427387904
.double 2.e+
# CHECK: .quad  4611686018427387904
.double 2.e-
# CHECK: .quad  -4615288898129284301
.double -1.2e
# CHECK: .quad  4621819117588971520
.double 1e1
# CHECK: .quad	4591870180066957722
.double 1e-1


# CHECK: .quad  -4570379565595099136
.double -1.2E3
# CHECK: .quad  -4690170861623122860
.double -1.2E-5
# CHECK: .quad  -4465782973978902528
.double -1.2E+10
# CHECK: .quad  4681608360884174848
.double 1E5
# CHECK: .quad  4681608360884174848
.double 1.E5
# CHECK: .quad  4611686018427387904
.double 2.E
# CHECK: .quad  4611686018427387904
.double 2.E+
# CHECK: .quad  4611686018427387904
.double 2.E-
# CHECK: .quad  -4615288898129284301
.double -1.2E
# CHECK: .quad  4621819117588971520
.double 1E1
# CHECK: .quad  4591870180066957722
.double 1E-1


#CHECK-ERROR: unexpected token in '.double' directive
.double 1e1e
# CHECK-ERROR: Invalid sign in float literal
.double 2.+1

# CHECK: .long 1310177520
.float 0x12f7.1ep+17
# CHECK: .long 1084227584
.float 0x.ap+3
# CHECK: .quad 4602678819172646912
.double 0x2.p-2
# CHECK: .long 1094713344
.float 0x3p2
# CHECK: .long 872284160
.float 0x7fp-30
# CHECK: .long 3212836864
.float -0x1.0p0

# CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
.float 0xa.apa

# CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
.double -0x1.2p+

# CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one exponent digit
.double -0x1.2p

# CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
.float 0xp2

# CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
.float 0x.p5

# CHECK-ERROR: error: invalid hexadecimal floating-point constant: expected exponent part 'p'
.float 0x1.2