BR3392232: Fix relocations in MachO64
[nasm.git] / test / radix.asm
blob1c5645729095b6c386ad459ca64d376abdf327f4
1 ;Testname=test; Arguments=-fbin -oradix.bin; Files=stdout stderr radix.bin
3 ;; Integer constants...
5 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
12 dd 0b1010_0101 ; Binary
13 dd 0y1010_0101 ; Binary
14 dd 1010_0101b ; Binary
15 dd 1010_0101y ; Binary
17 dd 0o1010_0101 ; Octal
18 dd 0q1010_0101 ; Octal
19 dd 1010_0101o ; Octal
20 dd 1010_0101q ; Octal
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
28 db 0h ; Zero!
29 db 0x ; Zero!
30 db 0b ; Zero!
31 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
40 ;; Floating-point constants
41 ;; All of these should output B4A21147
42 dd 3.7282705e+4 ; Decimal
43 dd 00003.7282705e+4 ; Decimal
44 dd 0d3.7282705e+4 ; Decimal
45 dd 0t3.7282705e+4 ; Decimal
47 dd 0x1.23456789p+15 ; Hex
48 dd 0h1.23456789p+15 ; Hex
50 dd 0o1.10642547422p+15 ; Octal
51 dd 0q1.10642547422p+15 ; Octal
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