asm-tests/i386-pc: Check that near jumps are 2 bytes.
We already check that jump over 300 bytes gap is 3 bytes in code16-mode. Some clang versions generate 3-byte opcode for short jumps which makes boot.img blow over 512-byte limit. Enforce -no-integrated-as in such cases
This commit is contained in:
parent
a50dbb743e
commit
323ef2bdc3
1 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,10 @@
|
|||
.code16
|
||||
jmp far
|
||||
.org 4
|
||||
.space 300
|
||||
jmp nearer
|
||||
.org 6
|
||||
.space 100
|
||||
nearer:
|
||||
.space 200
|
||||
far:
|
||||
.byte 0
|
||||
|
|
Loading…
Reference in a new issue