Commit graph

2560 commits

Author SHA1 Message Date
H. Peter Anvin
c33f05a9c7 phash.sh: Use int() for the size of the hash table
Pass the hash table size to int() to make it a bit more sane.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-03-26 09:25:10 -07:00
H. Peter Anvin
ff62f33da0 NASM 2.10 2012-03-12 13:36:02 -07:00
Cyrill Gorcunov
5bc6d8e44d help: Print that -Ox is a default optimization level
Reported-by: Frank Kotler <fbkotler@myfairpoint.net>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-03-11 14:19:17 +04:00
Cyrill Gorcunov
1a42fb28a1 preproc: Finally drop context-through search
[backport 290eac7569]

2.09 series was the last one we support context-thru search
(and we were issuing a warning about that) so drop all-context
from get_ctx() routine.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-03-11 11:40:26 +04:00
H. Peter Anvin
fd8a7ae7ed NASM 2.10rc15 2012-03-09 16:43:37 -08:00
Cyrill Gorcunov
eaebcb4258 test: Add br3385573 testcase
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-03-06 11:18:02 +04:00
Cyrill Gorcunov
3acd53c72f BR3385573: insns: Fix VPMOVSXBW
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-03-06 11:12:17 +04:00
H. Peter Anvin
b106ba161f Try again to fix our handling of MOVD/MOVQ
Try to implement the handling of MOVD as attempted in checkin:

    70712c0df6

and reverted in:

    d279fbbd80

due to BR3392199.  This time make sure to use the SX flag to only
match when a size is explicitly given, and also don't duplicate the 0F
6F/7F opcodes, which are documented as MOVQ by AMD as well as Intel.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-03-05 22:37:21 -08:00
H. Peter Anvin
9d91ff5b12 NASM 2.10rc14 2012-03-04 19:46:43 -08:00
Cyrill Gorcunov
65ff09a9d8 BR3392200: preproc - Fix dangling paste term
Backport 99a055add9

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-03-04 13:05:55 +04:00
H. Peter Anvin
fec39dc93a NASM 2.10rc13 2012-03-03 16:26:07 -08:00
H. Peter Anvin
36206cd378 preproc: Revert to the NASM 2.09 preprocessor
The NASM 2.09 preprocessor allows some illogical constructs, but which
unfortunately has been found in real code in the field.  We need
a compatibility solution or a pragma before we can avoid that.

However, we need the other features in NASM 2.10 to come out, so
revert the preprocessor changes for now.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-03-03 16:23:19 -08:00
Cyrill Gorcunov
500ddabcd3 preproc: Drop never used Cond structure
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-03-01 02:17:51 +04:00
Cyrill Gorcunov
6a224e32a5 NASM 2.10rc12
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-27 11:44:33 +04:00
Cyrill Gorcunov
cf72a29354 doc: Update changes
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-27 11:29:37 +04:00
Cyrill Gorcunov
99a055add9 BR3392200: preproc - Fix dangling paste term
In case if there a production

	{tok},{%+},{whitespace}*

the preprocessor does not delete
ending paste+spaces tokens. Fix it.

http://bugzilla.nasm.us/show_bug.cgi?id=3392200

Reported-by: KO Myung-Hun <komh@chollian.net>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-27 11:12:06 +04:00
H. Peter Anvin
bd8cef73d1 nasm.spec.in: switch to .xz as the source file
Switch the source file to use for the SRPM to the .xz file.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-26 08:19:56 -08:00
H. Peter Anvin
78d59e370d misc/release: do xz compression with -9e
Use the -9e compression level when doing xz compression.  It only
saves a few kilobytes, but since our files are pretty small it doesn't
really take all that much time.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:49:25 -08:00
H. Peter Anvin
0d008c52ab insns.dat: MOV is not lockable; CMPXCHG16B does not support HLE
Using a LOCK prefix with MOV is not permitted.
The CMPXCHG16B instruction is not defined to support HLE.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:38:42 -08:00
H. Peter Anvin
e014f354d5 HLE: One more byte code conversion
Add missing site for the \265..267 -> \271..273 byte code move.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:35:19 -08:00
H. Peter Anvin
574784d177 HLE: Move byte codes back to \271-\273
Since we are back to three bytecodes, move them back to the \271-\273
slot to free up the \264 complete quad.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:33:46 -08:00
H. Peter Anvin
e9d46c48e4 NASM 2.10rc11 2012-02-25 22:23:32 -08:00
H. Peter Anvin
fb3f4e6ddb HLE: Change NOHLE to be an instruction flag
The way our matching system works we have to make NOHLE an instruction
flag rather than an byte code; by the time we run the byte code
interpreter we have already picked an instruction pattern once and for
all.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:22:07 -08:00
H. Peter Anvin
c5473121af tag-release: actually push data out unless --no-push is given
Rather than just printing a list of commands, do them, unless
--no-push is given...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:02:08 -08:00
H. Peter Anvin
75fa99713c NASM 2.10rc10 2012-02-25 21:59:36 -08:00
H. Peter Anvin
74d23af7b8 release: create .xz files; remove empty subdirectories
Create .xz files as well as .gz and .bz2; remove empty subdirectories
from the xdoc archives.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 21:30:33 -08:00
H. Peter Anvin
38e57c5084 doc: Remove some ugliness from the win64 section
Clean up the formatting of the Win64 examples.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:50:32 -08:00
H. Peter Anvin
c65035ecdb psfonts.ph: increase leading to font size+20%
Increase the leading from +10% to +20%, (12 pt leading for the 10 pt
bulk text.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:46:38 -08:00
H. Peter Anvin
6b8cc128f3 changes: document bigendian UTF-16/UTF-32 support
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:34:14 -08:00
H. Peter Anvin
9fa2e72997 Add support for UTF-16BE and UTF-32BE
Add support for bigendian UTF-16 and UTF-32, and (for symmetry) add
explicitly littleendian operators.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:29:37 -08:00
H. Peter Anvin
5a24fdd547 Make the LOCK and HLE warnings suppressable.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:11:11 -08:00
H. Peter Anvin
c92aaa1d49 doc: Document elfx32 support
Document the new elfx32 backend.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:05:45 -08:00
H. Peter Anvin
80fd1a5f0d doc: Move the EPS logo down by 1"
The default page-centered position doesn't work too well with the
title and the new logo, so move the new logo down the page a bit.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 14:55:12 -08:00
Cyrill Gorcunov
2a50c9128f doc: New NASM logo
Update to a new NASM logo.
2012-02-25 14:53:34 -08:00
H. Peter Anvin
13ac842709 doc: Allow repositioning the EPS logo
Allow specifying an offset from the computed position of the EPS logo:

\M{logoxadj}{adjustment}
\M{logoyadj}{adjustment}

The adjustment is given in Postscript points (1/72" = 0.352778 mm) and
using the Postscript coordinate system, with the origin in the lower
left.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 14:51:01 -08:00
H. Peter Anvin
8aa01db9b4 Update copyright year to 2012 2012-02-25 14:45:44 -08:00
H. Peter Anvin
0ab83c9e9c NASM 2.10rc9 2012-02-25 13:31:16 -08:00
H. Peter Anvin
8a44aa49c8 doc: Document AVX2, BMI1, BMI2 and TSX support.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 13:30:41 -08:00
H. Peter Anvin
7687dded2d Assume the undocumented CMPXCHG486 opcode was lockable
Someone who actually knows about this opcode and has a 486 to test on
may want to verify this.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 12:35:33 -08:00
Cyrill Gorcunov
a94601f83c insns.dat: Add IF_LOCK flag on appropriate instructions
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-26 00:25:37 +04:00
H. Peter Anvin
c3bfc7f643 Clean up JMP/CALL patterns, especially for 64 bits
Clean up JMP/CALL patterns so they don't disassemble quite so uglily.
Fix a CALL pattern which would have incorrectly generated a (harmless)
REX.W prefix.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 12:13:50 -08:00
Cyrill Gorcunov
b496c68f91 insns.dat: Add nohle for MOV in case of moffset destination
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-26 00:07:27 +04:00
Cyrill Gorcunov
922f5e2dac insns.dat: Add hlexr flag for MOV instruction
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
ab6057926b insns.dat: Add hlenl flag for XCHG instruction
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
93e170f585 insns.dat: Add hle flag for XADD instruction
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
5c4d23a039 insns.dat: Add hle flag for XOR instruction
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
3403477b96 insns.dat: Add hle flag for SUB instruction
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
b556a03847 insns.dat: Add hle flag for SBB instruction
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
0626db9eb9 insns.dat: Add hle flag for OR instruction
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
7d072f0ca9 insns.dat: Add hle flag for NOT instruction
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00