aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * travis: add br3392442Cyrill Gorcunov2020-09-074-0/+19
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add br3392707Cyrill Gorcunov2020-09-065-0/+68
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: nasm-t -- fix --error optionCyrill Gorcunov2020-09-061-2/+4
| | | | | | | | | | | | Write "expected" or "over" if requested. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: warnstack -- fix spacesCyrill Gorcunov2020-09-061-5/+5
| | | | | | | | | | | | | | We use tabs in json so make it consistent. No functional change. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: when parsing an smacro template, don't mistake , for )H. Peter Anvin (Intel)2020-09-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | The operation of the ',' and ')' tokens are very similar, except for: ',' issues a error if the processed parameter is greedy; ')' sets the "done" variable. The code would incorrectly set "done" for a ',' token. This fixes travis test br3392711. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* | nasm.h: correct TOKEN_LPAR and TOKEN_RPARH. Peter Anvin (Intel)2020-09-041-2/+2
| | | | | | | | | | | | | | These two symbolic names were reversed. In practice, the code uses '(' and ')' instead, so it wasn't a problem, but still very confusing. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* | preproc: don't loop on a variable that doesn't advanceH. Peter Anvin (Intel)2020-09-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | When pasting and stripping %+ and whitespace tokens, we either need to set *nextp in the loop, or treat next as a separate variable and update *nextp after the loop finishes. This implements the second option. This fixes travis test "amx". Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* | preproc: add %eval() function, add back %isn*()H. Peter Anvin (Intel)2020-09-041-40/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the %eval() preprocessor function. It evaluates each of its arguments like a number and expands to a comma-separated lists of the evaluated arguments. To support this, add the concept of "true varadic" macros, which are only used internally. True varadic macros differ from greedy macros in that the parameter list is still parsed as individual parameters and provided to the expansion function. As this isn't meaningful for user-defined macros, there is no way to specify it from a directive. Add back the %isnfoo() functions. Although one could just as well write !%isfoo(), it doesn't cost much to provide them, and might help avoid programmer confusion. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* | Merge tag 'nasm-2.15.05'H. Peter Anvin (Intel)2020-08-3189-43/+2864
|\| | | | | | | | | | | | | | | | | | | NASM 2.15.05 Resolved Conflicts: asm/preproc.c version Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * NASM 2.15.05nasm-2.15.05H. Peter Anvin2020-08-281-1/+1
| |
| * NASM 2.15.05rc2nasm-2.15.05rc2H. Peter Anvin (Intel)2020-08-271-1/+1
| |
| * Add option to create reproducible outputH. Peter Anvin (Intel)2020-08-2712-42/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need the ability to produce consistent output for our own tests, anyway, so make this a user-accessible feature. This was requested in BR 3392635. This obsoletes the NASM_TEST_RUN environment variable; simply use the normal NASMENV environment variable instead. The .obj tests in travis needed to be updated in order to remove the rather pointless suffix " CONST" from the NASM signatures. Reported-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * travis: fix "warnstack" testH. Peter Anvin (Intel)2020-08-274-17/+8
| | | | | | | | | | | | | | | | The "warnstack" test is supposed to test the warning stack, but the [warning] directive is never seen in preprocess-only mode, so run it in -f bin mode. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * NASM 2.15.05rc1nasm-2.15.05rc1H. Peter Anvin (Intel)2020-08-271-1/+1
| |
| * BR 3392715: fix %ifid with $ and $$H. Peter Anvin (Intel)2020-08-275-4/+40
| | | | | | | | | | | | | | | | %ifid $ and %ifid $$ has traditionally been false, revert to that behavior. Reported-by: Mike Hommey <mh+anfz@glandium.org> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * trevis: unify tmap descriptorCyrill Gorcunov2020-08-252-10/+12
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add lwpCyrill Gorcunov2020-08-253-0/+225
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: enable winalign testCyrill Gorcunov2020-08-252-1/+0
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add br3392411Cyrill Gorcunov2020-08-253-0/+34
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * output/outcoff.c: zap timestamp when running testsCyrill Gorcunov2020-08-251-1/+11
| | | | | | | | | | | | | | | | When we're running tests we must not fail due to time stamp difference in a header. Lets zap it if test run is detected. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: nasm-t -- add ability to specify errorCyrill Gorcunov2020-08-251-0/+6
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add br3392363Cyrill Gorcunov2020-08-253-0/+18
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add br3392396Cyrill Gorcunov2020-08-253-0/+18
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add br3392392Cyrill Gorcunov2020-08-254-0/+37
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add v4Cyrill Gorcunov2020-08-254-0/+40
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add sregCyrill Gorcunov2020-08-253-0/+78
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add retCyrill Gorcunov2020-08-256-0/+104
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add vaesencCyrill Gorcunov2020-08-253-0/+32
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add vexCyrill Gorcunov2020-08-254-0/+32
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add vgatherCyrill Gorcunov2020-08-253-0/+88
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add warnstackCyrill Gorcunov2020-08-254-0/+36
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add vpcmpCyrill Gorcunov2020-08-253-0/+40
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add winalignCyrill Gorcunov2020-08-253-0/+59
| | | | | | | | | | | | | | It is disabled by now -- we need to teach nasm-t to skip some parts of output (due to format specifics). Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: nasm-t -- add ability to disable testCyrill Gorcunov2020-08-251-0/+5
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add xdefine testCyrill Gorcunov2020-08-253-0/+28
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add br3392275Cyrill Gorcunov2020-08-253-0/+23
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: nasm-t -- add ability to generate new testsCyrill Gorcunov2020-08-251-0/+118
| | | | | | | | | | | | Just to not fill descriptor by hands every time. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add xpaste testCyrill Gorcunov2020-08-243-0/+18
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add avx2Cyrill Gorcunov2020-08-243-0/+1619
| | | | | | | | | | | | Initial conversion by nasm64developer. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add br3104312Cyrill Gorcunov2020-08-243-0/+24
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add amx testCyrill Gorcunov2020-08-243-0/+49
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: update absoluteCyrill Gorcunov2020-08-241-0/+3
| | | | | | | | | | | | To match test/ instance. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add a64 testCyrill Gorcunov2020-08-243-0/+41
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | nasm.h: fix comment for TOKEN_PREPROC_SQQH. Peter Anvin (Intel)2020-08-251-1/+1
| | | | | | | | | | | | This token is %*?? not %*? Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* | Merge tag 'nasm-2.15.04'H. Peter Anvin (Intel)2020-08-2545-732/+1242
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NASM 2.15.04 Conflicts: asm/listing.h asm/pptok.pl asm/preproc.c version This doesn't pass travis test 3392711, which is using an extremely odd construct of %?? in the middle of an argument sequence for an smacro while not being in a macro itself, and expecting it to expand to the macro name. This seems to *really* confuse the master branch. Resolve this later...
| * NASM 2.15.04nasm-2.15.04H. Peter Anvin (Intel)2020-08-201-1/+1
| |
| * NASM 2.15.04rc6nasm-2.15.04rc6H. Peter Anvin2020-08-201-1/+1
| |
| * Auto-make the warning filesH. Peter Anvin2020-08-184-24/+70
| | | | | | | | | | | | | | | | | | The warning files are generated by a script, but the scripts is fast enough run every time a C file is updated. To prevent having to rebuild every file, however, make the generation script only actually modify the file if it has changed. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * br3392643: update travis testH. Peter Anvin2020-08-181-1/+1
| | | | | | | | | | | | | | | | The warning output by obj symbol truncation has been changed, update the travis reference accordingly. Cc: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * outobj: change cutting -> truncatingH. Peter Anvin2020-08-181-1/+1
| | | | | | | | | | | | | | | | I believe "truncating" is the more common terminology in this case, so change to it for aestetic reasons only. Cc: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>