Cyrill Gorcunov
9d1141aea9
preproc: Missed double charp in nasm_trace
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-26 23:07:35 +04:00
Cyrill Gorcunov
9880ea4572
insns: A few more AVX2 instructions
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-26 10:45:10 +04:00
Cyrill Gorcunov
92569ece7b
insns: Add VPERMD instruction
...
We somehow missed it.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-26 02:07:22 +04:00
Cyrill Gorcunov
767a4e8313
test: Add movd.asm
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-26 01:53:38 +04:00
Cyrill Gorcunov
ed33be2519
insns: Allow MOVD xmmreg,rm32 to be used in 32bit mode
...
Reported-by: Keith Kanios <keith@kanios.net>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-26 01:49:29 +04:00
Cyrill Gorcunov
fc0c1281db
preproc: Add tokenization tracing
...
It's a bit more than that, also TRACE=1 make
flag added to run this facility on and off
at compiling time.
Debug feature only, doesn't affect regular users.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 19:51:44 +04:00
Cyrill Gorcunov
82667ff5d3
preproc.c: Get rid of a few tabs and update year
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 19:34:19 +04:00
Cyrill Gorcunov
3eba69a63a
preproc.c: Use list_reverse helper
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 18:16:54 +04:00
Cyrill Gorcunov
396b5dfe95
nasmlib: Add list_reverse helper
...
There is no way to make it as a helper function
for a while, we need to unify list processing
in general (ie to use abstract list type).
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 18:15:41 +04:00
Cyrill Gorcunov
87225da76d
nasmlib: Add list_last helper
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 18:15:21 +04:00
Cyrill Gorcunov
a39912dcd9
Move numvalue herleper into nasmlib.h
...
No need to duplicate implementation.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 12:10:40 +04:00
Cyrill Gorcunov
fb27fc21e7
preproc: Drop unused 'mtok' variable
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 12:08:30 +04:00
Cyrill Gorcunov
9fde335005
nassm.c: Use evaluate for section alignment
...
This allow us to write the whole expressions
on section alignments, such as
align 0xa+6
or whatever math. Should be a way more convenient
than hardnumbers scheme we had.
Reported-by: Frank Kotler <fbkotler@zytor.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 12:05:51 +04:00
Cyrill Gorcunov
cb00cd1ba7
BR3288901: Relax concat rules in preprocessor code
...
We simply allow the following terminals to be concat'ed
if they are written without space or any other separator
inbetween.
a := id | preproc-id | number | float | other
b := id | preproc-id | number | float | other
if match(a,b):
s := concat(a,b)
re-tokenize(s)
Basically it means it's up to code author to write
preproc code a way the sane production appears.
Some notes.
1) We don't concat strings.
2) The 'weirdpaste' test fails now because with relaxed
rules it works as needed and was borken before.
The lacmus snippet is
%define N 1e%++%+ 5
dd N, 1e+5
Previously the output was
dd 1e+%+ 5, 1e+5
which is wrong since we have explicit concat here
with %+ operator. The new code production is correct
and looks like
dd 1e+5, 1e+5
as expected.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 12:03:36 +04:00
Cyrill Gorcunov
80594e79ed
insns: Mark VGATHERDPD as AVX2 instructions
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 12:01:52 +04:00
Cyrill Gorcunov
f753cd2fd3
Add IF_AVX2 flag
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-06-25 12:01:30 +04:00
H. Peter Anvin
08c023fffb
Merge branch 'nasm-2.09.xx'
2011-06-23 13:41:01 -07:00
H. Peter Anvin
bf5652d220
rdoff: add missing dependency in Makefile
...
Add back a dependency which was accidentally dropped for the previous
build bug fix.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2011-06-23 13:40:06 -07:00
H. Peter Anvin
1f0e0bcf1f
Merge branch 'nasm-2.09.xx'
2011-06-23 13:27:43 -07:00
H. Peter Anvin
c050362865
Makefile: hopefully fix rdoff parallel build problems
...
The strange dependency on nasmlib.o causes serious issues in parallel
build; hopefully fix it.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2011-06-23 13:26:59 -07:00
H. Peter Anvin
95adeabff5
Implement the VGATHERP instruction
...
As an initial test of the VSIB handling, implement the VGATHERP
instruction.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2011-06-22 18:20:28 -07:00
H. Peter Anvin
3089f7ef8a
Add support for VSIB instructions
...
Add support for VSIB instructions, which use vector registers as the
index registers in an EA.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2011-06-22 18:19:28 -07:00
H. Peter Anvin
9f7ce6bdd9
NASM 2.10rc6
2011-06-06 14:55:59 -07:00
H. Peter Anvin
55fe7735cf
spec: update to match requirements of Fedora 14+
...
"PreReq" is no longer accepted as an alias for "Requires". Sigh.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2011-06-06 14:53:22 -07:00
H. Peter Anvin
20306b2b8c
NASM 2.10rc5
2011-06-03 18:15:25 -07:00
Keith Kanios
8052664433
BR3282788: Fix 64-bit Mach-O bug that crashes NASM due to NULL symbols
2011-04-11 21:38:50 -05:00
Keith Kanios
918317c4ce
Revert "nasmlib: added string replace (strrep) utility function"
...
This reverts commit dd9c9752ea
.
2011-04-09 10:33:06 -05:00
Keith Kanios
256901bbbc
Revert "nasmlib.c: fix issues with strrep utility function"
...
This reverts commit f16401f9aa
.
2011-04-09 10:30:20 -05:00
Keith Kanios
f16401f9aa
nasmlib.c: fix issues with strrep utility function
2011-04-08 01:20:09 -05:00
Keith Kanios
dd9c9752ea
nasmlib: added string replace (strrep) utility function
2011-04-08 00:23:21 -05:00
Cyrill Gorcunov
a4f98b3aab
Merge branch 'nasm-2.09.xx'
...
Conflicts:
nasm.h
version
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-04-06 19:12:17 +04:00
Cyrill Gorcunov
a4b1c5c68e
NASM 2.09.08
2011-04-06 19:10:24 +04:00
Cyrill Gorcunov
47e7ecda1b
doc: Updates for stable branch fix
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-04-06 19:08:34 +04:00
Cyrill Gorcunov
c1936da942
ofmt: Alias shortname must be used for __OUTPUT_FORMAT__ macro
...
__OUTPUT_FORMAT__ must consist of shortname of output format
or its alias, otherwise userspace ABI gets broken.
For example source code still can refer to __OUTPUT_FORMAT__=elf,
instead of __OUTPUT_FORMAT__=elf32.
BR3246990
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-04-06 18:32:15 +04:00
H. Peter Anvin
2250195a1a
Merge branch 'nasm-2.09.xx'
2011-03-15 15:41:54 -07:00
Jiri Malak
f2536e10a0
openwcom.mak: Update to use features from newer WMAKE
...
Change the OpenWatcom WMAKE Makefile to use the facilities available
in WMAKE to support cross-compilation properly.
See BR 3079573.
2011-03-15 15:40:53 -07:00
Cyrill Gorcunov
a09fe1ebfb
Merge branch 'nasm-2.09.xx'
...
Conflicts:
doc/changes.src
version
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-12 22:35:42 +03:00
Cyrill Gorcunov
faa13a2414
NASM 2.09.07
...
- Fix crash for -a option
- Fix VEXTRACTF128, VMASKMOVPS instructions
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-12 22:31:15 +03:00
Cyrill Gorcunov
eb9b2943c6
doc: Update changes
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-07 12:44:43 +03:00
Cyrill Gorcunov
ffa4c37eaf
test: Add br3189064
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-07 12:42:46 +03:00
Cyrill Gorcunov
b61564400a
BR3189064: Fixes for VEXTRACTF128, VMASKMOVPS
...
These AVX instructions should use YMM register
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-07 12:40:22 +03:00
Cyrill Gorcunov
16f998e92f
doc: Update changes
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-07 11:35:18 +03:00
Cyrill Gorcunov
f66e71b2cc
test: Add br3200749
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-07 11:29:56 +03:00
Cyrill Gorcunov
d34a1085b5
preproc.c: Don't forget to dup filename before free
...
src_set_fname simply gets copy of pointer (ideally
we need refcounting here) so don't pass the name
which will be freed soon but rather pass a copy.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-07 11:23:08 +03:00
Cyrill Gorcunov
91a65ba2b7
BR3200749: Fix "use after close" file pointer
...
Cleanup routine might be called several times
so be ready for that.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-07 11:18:50 +03:00
Cyrill Gorcunov
8dcfd883c7
preproc.c: Fix use-after-free bug
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-05 23:54:49 +03:00
Cyrill Gorcunov
a5c9912303
NASM 2.10rc4
2011-02-28 10:05:15 +03:00
Cyrill Gorcunov
1616b9d665
Merge branch 'nasm-2.09.xx'
...
Conflicts:
doc/changes.src
output/outbin.c
version
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-02-28 10:03:53 +03:00
Cyrill Gorcunov
a59c759e09
NASM 2.09.06
2011-02-28 10:00:31 +03:00
Cyrill Gorcunov
37dacf0dec
doc: Describe changes for 2.09.06
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-02-28 09:58:52 +03:00