|
| From: | Richard Henderson |
| Subject: | Re: [Qemu-devel] [PATCH 4/5] tcg-sparc: Implement division properly. |
| Date: | Mon, 11 Jan 2010 12:11:25 -0800 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 |
On 01/11/2010 11:09 AM, Richard Henderson wrote:
+ /* Load Y with the sign/zero extension of RS1 to 64-bits. */
+ if (uns) {
+ tcg_out_sety(s, TCG_REG_G0);
+ } else {
+ tcg_out_arith(s, TCG_REG_I5, rs1, 31, SHIFT_SRA);
Bah. tcg_out_arithi. Programming by code inspection only sucks. r~
| [Prev in Thread] | Current Thread | [Next in Thread] |