nasm/asm
H. Peter Anvin (Intel) 2aab21b3fb Fix the handling of the "rel" and "iwd" byte codes with oXX prefixes
The "rel" and "iwd" byte codes are supposed to be sensitive to the
operand size of the instruction, but inadvertently were only sensitive
to the CPU mode or an explicit size override for the operand.

"rel" affects direct near jumps, calls, and XBEGIN; "iwd" direct far
jumps and calls. No other instructions use these opcodes.

Fix this, so that e.g. "o32 jmp foo" is treated the same as "jmp dword
foo".

Correct the golden copies of the jmpxx travis tests (which were always
wrong.)

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-03-03 09:57:44 -08:00
..
asmutil.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
assemble.c Fix the handling of the "rel" and "iwd" byte codes with oXX prefixes 2026-03-03 09:57:44 -08:00
assemble.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
directiv.c fix [warning push] causing "unknown warning name" 2025-11-04 10:23:54 -08:00
directiv.dat directives: correctly handle quoted strings in directives 2025-10-10 10:41:09 -07:00
error.c error: factor out error functions into separate files 2025-11-07 14:42:33 -08:00
eval.c fix memory leak in eval_strfunc 2025-10-06 14:50:40 -07:00
eval.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
exprdump.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
exprlib.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
floats.c Warnings: disaggregate from source and tidy up documentation 2025-10-04 13:46:39 -07:00
floats.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
getbool.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
labels.c labels: make the prefix/suffix options and pragmas consistent 2025-10-07 18:46:39 -07:00
listing.c listing: modify active_list_options, not just list_options 2025-10-09 20:09:33 -07:00
listing.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
nasm.c error: factor out error functions into separate files 2025-11-07 14:42:33 -08:00
parser.c parser.c: Fix issue #181 - redundancy needed to avoid NEAR optimized out 2026-02-04 17:18:44 +01:00
parser.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
pptok.dat treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
pptok.pl treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
pragma.c labels: make the prefix/suffix options and pragmas consistent 2025-10-07 18:46:39 -07:00
preproc.c errors: add the ability to hold errors, not just warnings 2025-10-15 21:09:05 -07:00
preproc.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
quote.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
quote.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
rdstrnum.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
segalloc.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
srcfile.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
srcfile.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
stdscan.c Warnings: disaggregate from source and tidy up documentation 2025-10-04 13:46:39 -07:00
stdscan.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
strfunc.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
tokens.dat treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
tokhash.pl treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
uncompress.c zlib: pass 15 not 0 to inflateInit2() 2025-11-04 00:38:17 -08:00
warnings.c Make: handle warning files while building in a directory 2023-01-17 13:05:55 -08:00
warnings.dat Fix matching of branch instructions with prefixes and sizes 2025-10-10 13:07:46 -07:00
warnings.pl error: factor out error functions into separate files 2025-11-07 14:42:33 -08:00