diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-08-09 14:21:42 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-08-09 14:21:42 -0700 |
commit | fb118890402f44a816c7e345b80e2b2dd54c73b7 (patch) | |
tree | b9c49417a62bfbe13f5297859408a9940d2dd659 /test | |
parent | 63cacad27123662290958bab5d2e4ea02db95048 (diff) | |
download | nasm-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')
-rw-r--r-- | test/obsolete.asm | 9 |
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 |