Received: from eggs.gnu.org ([208.118.235.92]:56213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5v4e-000882-NE for qemu-devel@nongnu.org; Mon, 27 Aug 2012 04:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5v4d-0007Xb-Oq for qemu-devel@nongnu.org; Mon, 27 Aug 2012 04:53:32 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:59890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5v4d-0007XU-IP for qemu-devel@nongnu.org; Mon, 27 Aug 2012 04:53:31 -0400 Received: by eeke53 with SMTP id e53so1368333eek.4 for ; Mon, 27 Aug 2012 01:53:30 -0700 (PDT) From: Richard Sandiford Date: Mon, 27 Aug 2012 09:53:29 +0100 Message-ID: <8762843ed2.fsf@talisman.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] [PATCH] [MIPS] Fix order of CVT.PS.S operands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The FS input to CVT.PS.S is the high half and FT is the low half. tcg_gen_concat_i32_i64 takes the low half first, so the operands were in the wrong order. Signed-off-by: Richard Sandiford --- target-mips/translate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index 06f0ac6..defc021 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -6907,7 +6907,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1, gen_load_fpr32(fp32_0, fs); gen_load_fpr32(fp32_1, ft); - tcg_gen_concat_i32_i64(fp64, fp32_0, fp32_1); + tcg_gen_concat_i32_i64(fp64, fp32_1, fp32_0); tcg_temp_free_i32(fp32_1); tcg_temp_free_i32(fp32_0); gen_store_fpr64(ctx, fp64, fd); -- 1.7.7.6