Mathieu Desnoyers wrote:
Ok, so the most flexible solution that I see, that should fit for both i386 and x86_64 would be : 1 byte : "=Q" : Any register accessible as rh: a, b, c, and d. 2, 4 bytes : "=R" : Legacy register—the eight integer registers availableon all i386 processors (a, b, c, d, si, di, bp, sp). 8 bytes : (only for x86_64)"=r" : A register operand is allowed provided that it is in a general register. That should make sure x86_64 won't try to use REX prefixed opcodes for 1, 2 and 4 bytes values. Does it make sense ?
That's probably the best bet. -hpa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 5/8] Immediate Values - x86 Optimization (update 2)
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update 2)
- References:
- [patch 5/8] Immediate Values - x86 Optimization
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: Mathieu Desnoyers <[email protected]>
- [patch 5/8] Immediate Values - x86 Optimization
- Prev by Date: Re: [patch/rfc 1/4] GPIO implementation framework
- Next by Date: Re: Enabling Magic SysRq Key on boot before INIT
- Previous by thread: Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- Next by thread: Re: [patch 5/8] Immediate Values - x86 Optimization (update 2)
- Index(es):