Commit Graph

4635 Commits

Author SHA1 Message Date
H. Peter Anvin (Intel)
eeccbfe6ec .gitignore: ignore timestamp (*.time) files
Ignore timestamp files, they are transient.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2020-09-11 16:28:57 -07:00
H. Peter Anvin (Intel)
52848e8aba doc: improve documentation of %ifid et al
Clarify some of the semantics of %ifid, %ifnum, and %ifstr.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2020-09-11 16:28:57 -07:00
Cyrill Gorcunov
61265ecd15 travis: add br3392442
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-09-07 09:57:00 +03:00
Cyrill Gorcunov
08996ec2e5 travis: add br3392707
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-09-06 20:12:01 +03:00
Cyrill Gorcunov
463600ac22 travis: nasm-t -- fix --error option
Write "expected" or "over" if requested.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-09-06 20:02:53 +03:00
Cyrill Gorcunov
ff96ae3ffb travis: warnstack -- fix spaces
We use tabs in json so make it consistent.
No functional change.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-09-06 19:57:11 +03:00
H. Peter Anvin
214f2d4c56 NASM 2.15.05 2020-08-28 08:53:28 -07:00
H. Peter Anvin (Intel)
2f01a5ba4e NASM 2.15.05rc2 2020-08-27 13:07:04 -07:00
H. Peter Anvin (Intel)
bf79786e89 Add option to create reproducible output
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>
2020-08-27 13:06:08 -07:00
H. Peter Anvin (Intel)
7497737aa2 travis: fix "warnstack" test
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>
2020-08-27 12:22:09 -07:00
H. Peter Anvin (Intel)
48327377bd NASM 2.15.05rc1 2020-08-27 11:45:07 -07:00
H. Peter Anvin (Intel)
2b4886afdd BR 3392715: fix %ifid with $ and $$
%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>
2020-08-27 11:43:08 -07:00
Cyrill Gorcunov
0b7244fcd6 trevis: unify tmap descriptor
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 19:53:26 +03:00
Cyrill Gorcunov
2cc71a59b1 travis: add lwp
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 19:42:29 +03:00
Cyrill Gorcunov
312b7c667c travis: enable winalign test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 19:21:17 +03:00
Cyrill Gorcunov
4debfe8c8f travis: add br3392411
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 19:19:33 +03:00
Cyrill Gorcunov
523b96dd6f output/outcoff.c: zap timestamp when running tests
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>
2020-08-25 19:18:50 +03:00
Cyrill Gorcunov
512c93dc42 travis: nasm-t -- add ability to specify error
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 19:11:52 +03:00
Cyrill Gorcunov
09f819dc6f travis: add br3392363
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 19:02:55 +03:00
Cyrill Gorcunov
50131db098 travis: add br3392396
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 19:01:17 +03:00
Cyrill Gorcunov
296cf9bebc travis: add br3392392
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 18:59:06 +03:00
Cyrill Gorcunov
6691653710 travis: add v4
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 18:12:09 +03:00
Cyrill Gorcunov
40650a357a travis: add sreg
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 18:08:33 +03:00
Cyrill Gorcunov
91d0980bfa travis: add ret
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 18:05:33 +03:00
Cyrill Gorcunov
f2854471ac travis: add vaesenc
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
852e80b011 travis: add vex
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
70eb4a0885 travis: add vgather
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
186c28395f travis: add warnstack
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
e2917fd775 travis: add vpcmp
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
8142ab699d travis: add winalign
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>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
4b3ac4eefd travis: nasm-t -- add ability to disable test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
d9eed2bec7 travis: add xdefine test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
7f3cfafbd9 travis: add br3392275
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
63ccbf4f5f travis: nasm-t -- add ability to generate new tests
Just to not fill descriptor by hands every time.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:06 +03:00
Cyrill Gorcunov
d2e3bd850f travis: add xpaste test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-24 18:03:32 +03:00
Cyrill Gorcunov
b2fb88596e travis: add avx2
Initial conversion by nasm64developer.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-24 16:23:53 +03:00
Cyrill Gorcunov
62bae12eed travis: add br3104312
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-24 15:24:32 +03:00
Cyrill Gorcunov
355d8bf40c travis: add amx test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-24 15:24:32 +03:00
Cyrill Gorcunov
3d1f5ce8e7 travis: update absolute
To match test/ instance.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-24 15:24:22 +03:00
Cyrill Gorcunov
f0b0155280 travis: add a64 test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-24 13:48:31 +03:00
H. Peter Anvin (Intel)
7173483043 NASM 2.15.04 2020-08-20 15:37:42 -07:00
H. Peter Anvin
71087e1496 NASM 2.15.04rc6 2020-08-20 08:14:29 -07:00
H. Peter Anvin
f3a3f9925c Auto-make the warning files
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>
2020-08-18 15:07:51 -07:00
H. Peter Anvin
fb95a2ef7a br3392643: update travis test
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>
2020-08-18 12:37:35 -07:00
H. Peter Anvin
6236b39e06 outobj: change cutting -> truncating
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>
2020-08-18 12:34:33 -07:00
H. Peter Anvin
4a2c8c52c7 outobj: limit excessive length warning to 64 characters
The case where we warn for excessive length should presumably have
been %.nnns which means limit length to nnn characters, rather than
%nnns which means left-pad with spaces to nnn bytes if possible. Also
change the limit from 128 to 64, to make it more likely to not line
break.

Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2020-08-18 12:33:51 -07:00
Cyrill Gorcunov
51e23ac72a travis: add br3392643 test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-18 21:05:56 +03:00
Cyrill Gorcunov
f14552e5fb BR3392646: output/outobj.c: fix memory corruption in long object names
When we encode a name we put its length before it, the
storage is one byte width so the name can't be more
than UINT8_MAX (ie 255) bytes length.

Moreover if one provide a name more than RECORD_MAX then
we simply overwrite random memory.

Thus lets do as in other obj_check calls -- shrink the
size we gonna use. But unlike oter code lets yield a
warning as well.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-18 20:27:14 +03:00
Cyrill Gorcunov
57e0b3e56a travis: add br3392711 test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-18 13:59:12 +03:00
Cyrill Gorcunov
7c88289e22 BR3392711: preproc: fix memory corruption in expand_one_smacro
The mempcpy helper returns *last* byte pointer thus when
we call set_text_free we have to pass a pointer to the
start of the string.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-18 11:27:03 +03:00