blob: 1c5645729095b6c386ad459ca64d376abdf327f4 [file] [log] [blame]
H. Peter Anvin733cbb32008-10-06 18:27:30 -07001;Testname=test; Arguments=-fbin -oradix.bin; Files=stdout stderr radix.bin
Victor van den Elzen82fa68a2008-04-23 15:05:31 +02002
H. Peter Anvinc65a2f62007-10-22 17:34:10 -07003 ;; Integer constants...
4
H. Peter Anvinbea0bbb2007-10-22 16:53:48 -07005 dd 1010_0101 ; Decimal
6 dd 01010_0101 ; Decimal (*not* octal!)
7 dd 0d1010_0101 ; Decimal
8 dd 0t1010_0101 ; Decimal
9 dd 1010_0101d ; Decimal
10 dd 1010_0101t ; Decimal
11
12 dd 0b1010_0101 ; Binary
13 dd 0y1010_0101 ; Binary
14 dd 1010_0101b ; Binary
15 dd 1010_0101y ; Binary
16
17 dd 0o1010_0101 ; Octal
18 dd 0q1010_0101 ; Octal
19 dd 1010_0101o ; Octal
20 dd 1010_0101q ; Octal
21
22 dd 0h1010_0101 ; Hex
23 dd 0x1010_0101 ; Hex
24 dd 1010_0101h ; Hex
25 dd 1010_0101x ; Hex
26 dd $1010_0101 ; Hex
H. Peter Anvinc65a2f62007-10-22 17:34:10 -070027
H. Peter Anvin083f0c32007-10-26 21:38:02 -070028 db 0h ; Zero!
29 db 0x ; Zero!
30 db 0b ; Zero!
H. Peter Anvin50620f42007-10-22 19:48:06 -070031 db 0dh ; Hex
32 db 0bh ; Hex
33 db 0dx ; Hex
34 db 0bx ; Hex
35 db 0hd ; Hex
36 db 0hb ; Hex
37 db 0xd ; Hex
38 db 0xb ; Hex
39
H. Peter Anvinc65a2f62007-10-22 17:34:10 -070040 ;; Floating-point constants
41 ;; All of these should output B4A21147
42 dd 3.7282705e+4 ; Decimal
H. Peter Anvin083f0c32007-10-26 21:38:02 -070043 dd 00003.7282705e+4 ; Decimal
H. Peter Anvinc65a2f62007-10-22 17:34:10 -070044 dd 0d3.7282705e+4 ; Decimal
45 dd 0t3.7282705e+4 ; Decimal
46
47 dd 0x1.23456789p+15 ; Hex
48 dd 0h1.23456789p+15 ; Hex
49
50 dd 0o1.10642547422p+15 ; Octal
51 dd 0q1.10642547422p+15 ; Octal
52
53 dd 0b1.0010_0011_0100_0101_0110_0111_1000_1001p+15 ; Binary
54 dd 0y1.0010_0011_0100_0101_0110_0111_1000_1001p+15 ; Binary