Skip to content

Commit 1b62e6b

Browse files
committed
CTEST: Update reference test for x86 asm
1 parent 7357202 commit 1b62e6b

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/lpython/tests/test_asm.cpp

+6-12
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,6 @@ BITS 32
403403
dw 0x0000
404404
dw 0x0000
405405
dw 0x0000
406-
407-
ehdrsize equ 0x00000034
408-
409406
phdr:
410407
dd 0x00000001
411408
dd 0x00000000
@@ -415,12 +412,10 @@ ehdrsize equ 0x00000034
415412
dd filesize
416413
dd 0x00000005
417414
dd 0x00001000
418-
419-
phdrsize equ 0x00000020
420-
421-
422-
e_phoff equ 0x00000034
423-
415+
phdr_end:
416+
ehdrsize equ phdr - ehdr
417+
phdrsize equ phdr_end - phdr
418+
e_phoff equ phdr - ehdr
424419
msg:
425420
db 0x48
426421
db 0x65
@@ -446,9 +441,8 @@ e_phoff equ 0x00000034
446441
mov eax, 0x00000001
447442
mov ebx, 0x00000000
448443
int 0x80
449-
450-
filesize equ $ - $$
451-
444+
footer:
445+
filesize equ footer - ehdr
452446
)""");
453447
CHECK(asm_code == ref);
454448
#endif

0 commit comments

Comments
 (0)