|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v2 6/6] Do constant folding for unary operations. |
Date: | Fri, 10 Jun 2011 11:04:08 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 |
On 06/09/2011 03:45 AM, Kirill Batuzov wrote: > + case INDEX_op_ext8s_i32: > + return (int32_t)(int8_t)x; > + > + case INDEX_op_ext16s_i32: > + return (int32_t)(int16_t)x; No need to cast back to a 32-bit type. They'll be extended properly for the return type which is TCGArg. And if you drop these intermediate casts, you can merge the 32 and 64-bit copies. r~
[Prev in Thread] | Current Thread | [Next in Thread] |