mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-11-08 23:27:15 -05:00
Fix matching of branch instructions with prefixes and sizes
Matching of branch instructions with prefixes and sizes is, to say the least, tricky. Work through it, and add a new macro to help. Fixes: https://github.com/netwide-assembler/nasm/issues/144 Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
@@ -8,5 +8,5 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"error": "over"
|
||||
"update": false
|
||||
}
|
||||
|
||||
BIN
travis/test/jmpxx-o0.bin16.t
Normal file
BIN
travis/test/jmpxx-o0.bin16.t
Normal file
Binary file not shown.
BIN
travis/test/jmpxx-o0.bin32.t
Normal file
BIN
travis/test/jmpxx-o0.bin32.t
Normal file
Binary file not shown.
BIN
travis/test/jmpxx-o0.bin64.t
Normal file
BIN
travis/test/jmpxx-o0.bin64.t
Normal file
Binary file not shown.
BIN
travis/test/jmpxx-o1.bin16.t
Normal file
BIN
travis/test/jmpxx-o1.bin16.t
Normal file
Binary file not shown.
BIN
travis/test/jmpxx-o1.bin32.t
Normal file
BIN
travis/test/jmpxx-o1.bin32.t
Normal file
Binary file not shown.
BIN
travis/test/jmpxx-o1.bin64.t
Normal file
BIN
travis/test/jmpxx-o1.bin64.t
Normal file
Binary file not shown.
BIN
travis/test/jmpxx-ox.bin16.t
Normal file
BIN
travis/test/jmpxx-ox.bin16.t
Normal file
Binary file not shown.
BIN
travis/test/jmpxx-ox.bin32.t
Normal file
BIN
travis/test/jmpxx-ox.bin32.t
Normal file
Binary file not shown.
BIN
travis/test/jmpxx-ox.bin64.t
Normal file
BIN
travis/test/jmpxx-ox.bin64.t
Normal file
Binary file not shown.
3297
travis/test/jmpxx.asm
Normal file
3297
travis/test/jmpxx.asm
Normal file
File diff suppressed because it is too large
Load Diff
76
travis/test/jmpxx.json
Normal file
76
travis/test/jmpxx.json
Normal file
@@ -0,0 +1,76 @@
|
||||
[
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-Ox, 16 bits)",
|
||||
"id": "jmpxx",
|
||||
"format": "bin",
|
||||
"source": "jmpxx.asm",
|
||||
"option": "--bits 16 -Ox",
|
||||
"target": [
|
||||
{ "output": "jmpxx-ox.bin16" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-O0, 16 bits)",
|
||||
"ref": "jmpxx",
|
||||
"option": "--bits 16 -O0",
|
||||
"target": [
|
||||
{ "output": "jmpxx-o0.bin16" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-O1, 16 bits)",
|
||||
"ref": "jmpxx",
|
||||
"option": "--bits 16 -O1",
|
||||
"target": [
|
||||
{ "output": "jmpxx-o1.bin16" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-Ox, 32 bits)",
|
||||
"ref": "jmpxx",
|
||||
"option": "--bits 32 -Ox",
|
||||
"target": [
|
||||
{ "output": "jmpxx-ox.bin32" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-O0, 32 bits)",
|
||||
"ref": "jmpxx",
|
||||
"option": "--bits 32 -O0",
|
||||
"target": [
|
||||
{ "output": "jmpxx-o0.bin32" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-O1, 32 bits)",
|
||||
"ref": "jmpxx",
|
||||
"option": "--bits 32 -O1",
|
||||
"target": [
|
||||
{ "output": "jmpxx-o1.bin32" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-Ox, 64 bits)",
|
||||
"ref": "jmpxx",
|
||||
"option": "--bits 64 -Ox",
|
||||
"target": [
|
||||
{ "output": "jmpxx-ox.bin64" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-O0, 64 bits)",
|
||||
"ref": "jmpxx",
|
||||
"option": "--bits 64 -O0",
|
||||
"target": [
|
||||
{ "output": "jmpxx-o0.bin64" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test combinations of jump instructions (-O1, 64 bits)",
|
||||
"ref": "jmpxx",
|
||||
"option": "--bits 64 -O1",
|
||||
"target": [
|
||||
{ "output": "jmpxx-o1.bin64" }
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user