Re: [patch 13/17] Immediate Values - x86 Optimization (updated)

From: H. Peter Anvin
Date: Wed Apr 09 2008 - 18:48:41 EST


Mathieu Desnoyers wrote:

Hrm, since even the nmi-safe version supports REX-prefixed instructions,
there is no need for an =q constraint on single-byte immediate values
anymore. (thanks to your "discard" section used in the nmi-safe version)


WRONG!

Using =r for single-byte values is incorrect for 32-bit code -- that would permit %spl, %bpl, %sil, %dil which are illegal in 32-bit mode. That is not the incorrect bit, it's the description that is confused.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/