summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* NASM 2.10rc8nasm-2.10rc8H. Peter Anvin2011-07-271-1/+1
|
* Implement insns.dat in human readable formAnonymous2011-07-202-2072/+2056
| | | | | | | | | | | | | | | | | | | | | | | I converted almost all instructions in insns.dat (version 7a6f97869840fc0b1b8677bd77c74754c5f024aa) to the more readable format that insns.pl has supported for years. I also made some changes to insns.pl. You can verify that the new insns.dat and insns.pl produce byte-identical output to the old insns.dat and insns.pl, so I think that this change is safe to check in, even though it is a large change to insns.dat. The changes to insns.pl are: * fixed a bug: ib,u was not recognized * added support for a second immediate argument called "j" for instructions like ENTER imm,imm * added a "+r" syntax for \10..\13 [gorcunov: insns files remains the same, great job anonymous!] Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* NASM 2.10.rc7nasm-2.10rc7Cyrill Gorcunov2011-07-201-1/+1
| | | | | | Intel's AVX2 instructions should be covered now. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* insns: A final pile of AVX2 instructionsCyrill Gorcunov2011-07-201-5/+45
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* insns: A few additional AVX2 templatesCyrill Gorcunov2011-07-191-3/+34
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* insns: One more small snippet of AVX2Cyrill Gorcunov2011-07-181-0/+12
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* insns: One more slab of AVX2 instructionsCyrill Gorcunov2011-07-181-1/+22
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* insns: Add a slab of AVX2 instructionsCyrill Gorcunov2011-07-171-2/+76
| | | | | | | Not all are covered yet, but still a step forward I think. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* insns.dat: Move exsiting AVX2 insns to a separate sectionCyrill Gorcunov2011-07-171-13/+17
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* preproc: Align members in structuresCyrill Gorcunov2011-07-171-45/+47
| | | | | | For easier reading Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* preproc: Reorder ExpInv to drop paddingCyrill Gorcunov2011-07-171-18/+19
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* preproc: Reorder SMacro members to eliminate paddingCyrill Gorcunov2011-07-171-6/+6
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* nasm.h: Reorder tokenval members to drop paddingCyrill Gorcunov2011-07-171-3/+3
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Some cleanup on insns.hCyrill Gorcunov2011-07-171-75/+78
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Drop unused 'opt' from nasm_opt_valCyrill Gorcunov2011-07-171-2/+2
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* elf64: Drop unused 'zero' variableCyrill Gorcunov2011-07-171-3/+1
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Drop unused 'type' from gencodeCyrill Gorcunov2011-07-171-2/+0
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Fix saa_writeaddr for big-endian caseCyrill Gorcunov2011-07-171-1/+2
| | | | | | | saa_writeaddr on big-endian archs didn't write converted argument, fix it. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Drop unused 'arg' variableCyrill Gorcunov2011-07-171-2/+1
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Merge branch 'nasm-2.09.xx'Cyrill Gorcunov2011-07-161-0/+8
|\ | | | | | | | | | | | | Conflicts: version Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * NASM-2.09.10nasm-2.09.10nasm-2.09.xxCyrill Gorcunov2011-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix nasty problem with uninstaller in case of registry keys corruption, which might lead to arbitrary files removal. Just to be sure the proper files and directories are to be removed a few additional questions are brought into deinstallation procedure. The former issue reported here http://forum.nasm.us/index.php?topic=1013.0 Note: no functional changes are done inside nasm code, critical fixes will be ported to 2.09.xx branch, but mostly the (more or less) active development and various bug fixes are concentrated around 2.10 series. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * doc: Describe changes for nasm-2.09.10Cyrill Gorcunov2011-07-161-0/+8
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * nsis: Remove desktop bat link as wellCyrill Gorcunov2011-07-151-3/+17
| | | | | | | | | | | | | | | | | | | | In case of installation procedure being used in a per-user fasion the display link to a bat file remain untouched at uninstallation time. Fix it. I hope this time all things go smooth. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * nsis: Inform a user about files being deletedCyrill Gorcunov2011-07-151-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since a user might have some weird access rules on NTFS such as allow to write files but not to delete them it might happen that uninstallation procedure fails at deleting files but deleting registry keys still success, and in result a user might try to uninstall nasm for second time with registry keys corrupted. So prompt a user with files being deleted so he can double check what is going on. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * nsis: Make sure the registry keys existCyrill Gorcunov2011-07-151-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | It was reported on nasm forum (http://forum.nasm.us/index.php?topic=1013.0) that if uninstallation procedure get stopped (for any reason) in a middle leading to read empty registry values an attempt to remove arbitrary files might happen. So make sure there are some sane values in registry. N.B: People, if you find some bug in nasm, don't write to forum, file bug directly in bugzilla, if it's not a bug we simply close it, otherwise we might miss serious problems like this one! Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | nsis: Remove desktop bat link as wellCyrill Gorcunov2011-07-151-3/+17
| | | | | | | | | | | | | | | | | | | | In case of installation procedure being used in a per-user fasion the display link to a bat file remain untouched at uninstallation time. Fix it. I hope this time all things go smooth. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | nsis: Inform a user about files being deletedCyrill Gorcunov2011-07-151-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since a user might have some weird access rules on NTFS such as allow to write files but not to delete them it might happen that uninstallation procedure fails at deleting files but deleting registry keys still success, and in result a user might try to uninstall nasm for second time with registry keys corrupted. So prompt a user with files being deleted so he can double check what is going on. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | A few more AVX2 spec instructionsverifiedH. Peter Anvin2011-07-082-0/+9
| | | | | | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | Use a normal quad-case for valueless /is4H. Peter Anvin2011-07-073-12/+13
| | | | | | | | | | | | | | | | When we don't have an immediate for the i-field in /is4, then use a normal quad-bytecode encoding for it to save some small amount of space and re-use existing machinery. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | Remove support for DREX encodingH. Peter Anvin2011-07-074-122/+12
| | | | | | | | | | | | | | The DREX encoding never hit production silicon, and has been replaced by VEX/XOP encoding, so remove support for it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | insns.dat: Clean up and fix the BMI instruction patternsH. Peter Anvin2011-07-071-32/+29
| | | | | | | | | | | | | | | | | | | | Clean up the formatting of the BMI instruction patterns, and fix: a) X64,FUTURE is wrong - it needs to be LONG,FUTURE b) Fix the BLSI, BLSMSK, BLSR instruction patterns c) Use a bracket pattern for TZCNT Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | insns: Fix up RORX templateJasper Neuman2011-07-071-1/+1
| | | | | | | | | | | | | | Missed 64 bit case. Signed-off-by: Jasper Neuman <jasper.neumann@web.de> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | insns.dat: Add some BMI1 and BMI2 instructionsJasper Neuman2011-07-071-0/+37
| | | | | | | | | | Signed-off-by: Jasper Neuman <jasper.neumann@web.de> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | nsis: Make sure the registry keys existCyrill Gorcunov2011-07-071-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | It was reported on nasm forum (http://forum.nasm.us/index.php?topic=1013.0) that if uninstallation procedure get stopped (for any reason) in a middle leading to read empty registry values an attempt to remove arbitrary files might happen. So make sure there are some sane values in registry. N.B: People, if you find some bug in nasm, don't write to forum, file bug directly in bugzilla, if it's not a bug we simply close it, otherwise we might miss serious problems like this one! Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | insns.h: Add BMI1 and BMI2 flags for further usageJasper Neuman2011-07-071-0/+2
| | | | | | | | | | Signed-off-by: Jasper Neuman <jasper.neumann@web.de> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: Drop useless assignmentsCyrill Gorcunov2011-07-061-4/+0
| | | | | | | | | | | | | | | | | | | | | | new_ExpDef does zalloc'ate memory so no need to assign zeros again. Same time it should fix MSC complains on NULL assignment on boolean variable. Reported-by: Jasper Neuman <jasper.neumann@web.de> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | Merge branch 'nasm-2.09.xx'Cyrill Gorcunov2011-07-041-0/+7
|\ \ | |/ | | | | | | | | | | Conflicts: version Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * NASM 2.09.09nasm-2.09.09Cyrill Gorcunov2011-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | Just a few fixes only but serious enough to yield new stable series - Unitialized memory parsing in bin format section attibutes. - MachO NULL dereference Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * doc: Describe changes for stable versionCyrill Gorcunov2011-07-041-0/+7
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * BR3282788: Fix 64-bit Mach-O bug that crashes NASM due to NULL symbolsKeith Kanios2011-07-041-8/+26
| |
| * output/outbin.c: initialize section attribs upon creationCyrill Gorcunov2011-07-041-37/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically it's backport of commits 11db774a151e9d895fa05f980563a5cafb0f306a 3bc3ff2fb685a645698f9db9cfc903df30e4e555 c13deef255b621ace2130adf55530f3364a40458 e3f47806658de042af0eaccb1cc7896be388b397 They were missed to back-merge in a first place. Reported-by: Keith Kanios <keith@kanios.net> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: Move Preproc type to preproc_ops structureCyrill Gorcunov2011-07-023-11/+13
| | | | | | | | | | | | | | There is no need to hide this structure into a type. The former preproc_ops is a way more descriptive. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: Refactor smacro paramters expansionCyrill Gorcunov2011-06-301-6/+9
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: Add smacro paramter helpersCyrill Gorcunov2011-06-301-6/+32
| | | | | | | | | | | | I belive this should simply code a bit. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: Alignment in loopCyrill Gorcunov2011-06-301-3/+3
| | | | | | | | | | | | Just for easier reading Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | insns: Mark AVX2 instructions as FUTURECyrill Gorcunov2011-06-291-7/+7
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: Finally drop context-through searchCyrill Gorcunov2011-06-281-36/+16
| | | | | | | | | | | | | | | | 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>
* | preproc: nasm_free is safe against NULL argumentCyrill Gorcunov2011-06-281-10/+5
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | Revert "BR3288901: Relax concat rules in preprocessor code"Cyrill Gorcunov2011-06-271-23/+27
| | | | | | | | | | | | | | | | | | This reverts commit cb00cd1ba7f07f60f0a94c43cfc4fa7b01e2ff95. As Victor pointed out some tests do not pass with this commit so revert it until things get fixed. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: Add trace point into paste_tokensCyrill Gorcunov2011-06-271-0/+2
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>