summaryrefslogtreecommitdiff
path: root/test/obsolete.asm
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-09 14:21:42 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-09 14:21:42 -0700
commitfb118890402f44a816c7e345b80e2b2dd54c73b7 (patch)
treeb9c49417a62bfbe13f5297859408a9940d2dd659 /test/obsolete.asm
parent63cacad27123662290958bab5d2e4ea02db95048 (diff)
downloadnasm-fb118890402f44a816c7e345b80e2b2dd54c73b7.tar.gz
BR 3392590: add warning for valid but obsolete instructions
Just becase one is compiling for an old CPU doesn't mean one wants to use obsolete instructions that would not be forward compatible. Rename the "obsolete" warning to "obsolete-removed" and create a new "obsolete-valid" warning to go with it (-w[+-]obsolete controls both options, as usual.) Suggested-by: C. Masloch <pushbx@38.de> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'test/obsolete.asm')
-rw-r--r--test/obsolete.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/obsolete.asm b/test/obsolete.asm
new file mode 100644
index 00000000..49dd772f
--- /dev/null
+++ b/test/obsolete.asm
@@ -0,0 +1,9 @@
+ bits 16
+
+ cpu 8086
+ pop cs
+ mov cs,ax
+
+ cpu 386
+ pop cs
+ mov cs,ax