Fix %rep ... %endmacro crash
[nasm/perl-rewrite.git] / test / floattest.asm
bloba8db5acb5798ecabdb86d4c63a915567f28e62dd
1 ;Testname=optimized; Arguments=-Ox -felf -ofloattest.o; Files=.stdout .stderr floattest.o
3 ; nasm -O99 -f elf32 floattest.asm
4 ; ld -m elf_i386 -o floattest floattest.o -I/lib/ld-linux.so.2 -lc
6 global _start
7 extern printf
9 section .text
10 _start:
12 fld qword [num1]
13 fadd qword [num2]
14 sub esp, 8
15 fstp qword [esp]
16 push fmt
17 call printf
18 add esp, 4*3
20 mov eax, 1
21 xor ebx, ebx
22 int 80h
24 section .data
25 num1 dq 41.5
26 num2 dq 0.5
28 fmt db "%f", 10, 0