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:
Vladimir Serbinenko 2015-11-11 18:58:57 +01:00
parent a50dbb743e
commit 323ef2bdc3

View file

@ -5,6 +5,10 @@
.code16
jmp far
.org 4
.space 300
jmp nearer
.org 6
.space 100
nearer:
.space 200
far:
.byte 0