------- Comment #5 from ubizjak at gmail dot com 2008-08-04 07:52 ------- In fact, it is not the duplicate of 23242. 23242 suggests "Q" constraint to access high part of 16bit regs (i.e. ah, dh ...), but here we should use "q" constraint instead of "r" to access lower 8bit part of the register. On 64bit, we can also use i.e. r10b in addition to sil and dil here.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37018