Re: amd64 assembly "fixes" for clang

2016-12-19 Thread Mike Larkin
On Sun, Dec 18, 2016 at 07:31:55PM +0100, Mark Kettenis wrote: > Generating mixed 16-bit/32-bit/64-bit code with clang's integrated > assembler is a bit tricky. It supports the .code16, .code32 and > .code64 directives. But it doesn't know about the data16/data32 and > addr16/addr32 instruction

amd64 assembly "fixes" for clang

2016-12-18 Thread Mark Kettenis
Generating mixed 16-bit/32-bit/64-bit code with clang's integrated assembler is a bit tricky. It supports the .code16, .code32 and .code64 directives. But it doesn't know about the data16/data32 and addr16/addr32 instruction prefixes. Instead it tries to determine those from the instruction