summaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-06 22:56:51 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-06 22:56:51 -0700
commit41bb8a8114042531e7831cbf2155185ae039297c (patch)
treea68f8d59fd968e4030fc5655f6e0ab3895f50900 /travis
parentd13a6f9708af6dab58b245a9ac2702ecc8e23304 (diff)
downloadnasm-41bb8a8114042531e7831cbf2155185ae039297c.tar.gz
Warn if trying to assemble obsolete instructions
Print a warning if one tries to assemble an obsolete instruction, unless there is an exact match for the CPU directive. For example: CPU 386 POP CS ; Warning - obsolete instruction CPU 8086 POP CS ; No warning Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/pushseg.json3
-rw-r--r--travis/test/pushseg.stderr1
2 files changed, 3 insertions, 1 deletions
diff --git a/travis/test/pushseg.json b/travis/test/pushseg.json
index 657b8b47..32bc0f72 100644
--- a/travis/test/pushseg.json
+++ b/travis/test/pushseg.json
@@ -5,7 +5,8 @@
"format": "bin",
"source": "pushseg.asm",
"target": [
- { "output": "pushseg.bin" }
+ { "output": "pushseg.bin" },
+ { "stderr": "pushseg.stderr" }
]
}
]
diff --git a/travis/test/pushseg.stderr b/travis/test/pushseg.stderr
new file mode 100644
index 00000000..2bf22630
--- /dev/null
+++ b/travis/test/pushseg.stderr
@@ -0,0 +1 @@
+./travis/test/pushseg.asm:17: warning: obsolete instruction invalid on the target CPU [-w+obsolete]