aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-11-01 10:37:18 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2017-11-01 10:37:18 -0700
commitece809789eed9c488d19a2eb5704130ba6377cb9 (patch)
treebab0c9d9731169411f51d15f7e4290be99f39ad4 /test
parent120819e73c33b316bfe02e2bacdd22108763a12b (diff)
parent9b7ee09abfd426b99aa1ea81d19a3b2818eeabf9 (diff)
downloadnasm-ece809789eed9c488d19a2eb5704130ba6377cb9.tar.gz
nasm-ece809789eed9c488d19a2eb5704130ba6377cb9.tar.xz
nasm-ece809789eed9c488d19a2eb5704130ba6377cb9.zip
Merge remote-tracking branch 'origin/nasm-2.13.xx'
Resolved conflicts: version Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile5
-rw-r--r--test/br3392411.asm22
-rw-r--r--test/br3392418.asm3
-rw-r--r--test/br3392439.asm25
-rw-r--r--test/br3392442.asm6
-rw-r--r--test/pextrw.asm3
-rw-r--r--test/timesneg.asm3
7 files changed, 66 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 7a6dfe24..ebd8c3f3 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -29,6 +29,9 @@ $(NASM):
%.obj: %.asm $(NASMDEP)
$(NASM) $(NASMOPT) -f obj -o $@ -MD $@.dep -l $*.lst $<
+%.rdf: %.asm $(NASMDEP)
+ $(NASM) $(NASMOPT) -f rdf -o $@ -MD $@.dep -l $*.lst $<
+
%.od: %.obj ../misc/omfdump
../misc/omfdump $< > $@
@@ -69,7 +72,7 @@ diff: performtest.pl $(NASMDEP) $(TESTS)
clean:
$(RM_F) *.com *.o *.o64 *.obj *.win32 *.win64 *.exe *.lst *.bin
- $(RM_F) *.dbg *.coff *.ith *.srec *.mo32 *.mo64 *.i *.dep
+ $(RM_F) *.dbg *.coff *.ith *.srec *.mo32 *.mo64 *.i *.dep *.rdf
$(RM_RF) testresults
$(RM_F) elftest elftest64
diff --git a/test/br3392411.asm b/test/br3392411.asm
new file mode 100644
index 00000000..02071a88
--- /dev/null
+++ b/test/br3392411.asm
@@ -0,0 +1,22 @@
+bits 64
+default rel
+
+%use smartalign
+
+section .text code align=32
+
+align 32
+
+nop
+jz LDone
+
+%rep 10
+ nop
+%endrep
+
+align 16
+%rep 115
+ nop
+%endrep
+
+LDone:
diff --git a/test/br3392418.asm b/test/br3392418.asm
new file mode 100644
index 00000000..7139870d
--- /dev/null
+++ b/test/br3392418.asm
@@ -0,0 +1,3 @@
+ section __LD,__compact_unwind data debug
+
+ dd 0
diff --git a/test/br3392439.asm b/test/br3392439.asm
new file mode 100644
index 00000000..1af47084
--- /dev/null
+++ b/test/br3392439.asm
@@ -0,0 +1,25 @@
+segment _TEXT class=CODE USE32 align=1 CPU=686
+
+extern _entry
+
+start:
+ mov ax, 0x18
+ mov ds, ax
+ mov es, ax
+ mov ss, ax
+ xor eax, eax
+ mov ax, 0x1234
+ shl eax, 4
+ add eax, 0x3000
+ mov esp, [eax]
+
+ call _entry
+
+.infloop:
+ hlt
+ jmp .infloop
+
+
+global _ret_16
+_ret_16:
+ jmp dword 0x10:0x8000
diff --git a/test/br3392442.asm b/test/br3392442.asm
new file mode 100644
index 00000000..e7a0511c
--- /dev/null
+++ b/test/br3392442.asm
@@ -0,0 +1,6 @@
+ ;; Bug report 3392442: invalid warning
+
+ and byte [0], ~80h
+ and byte [0], 0xfff
+ and byte [0], -256
+ and byte [0], -257
diff --git a/test/pextrw.asm b/test/pextrw.asm
new file mode 100644
index 00000000..41c50b7a
--- /dev/null
+++ b/test/pextrw.asm
@@ -0,0 +1,3 @@
+ bits 64
+
+ pextrw rax,xmm0,0
diff --git a/test/timesneg.asm b/test/timesneg.asm
new file mode 100644
index 00000000..9f16dbaa
--- /dev/null
+++ b/test/timesneg.asm
@@ -0,0 +1,3 @@
+ bits 32
+ times -1 db 0
+ times -1 incbin "timesneg.asm"