Hi Magro,
> echo \
> '# 1 file.S
> movw %al, %al' > file.s
> gcc file.s
> file.s: Assembler messages:
> file.s:2: Error: `%al' not allowed with `movw'
>
> Is this how it's supposed to behave?
Yes. Try removing the '# 1 file.S' line and just assembling the movw
line. You will still get the same error message.
Cheers
Nick