From patchwork Mon Aug 27 08:53:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 180158 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 500C72C00F6 for ; Mon, 27 Aug 2012 18:53:46 +1000 (EST) Received: from localhost ([::1]:48822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5v4p-00088Q-MV for incoming@patchwork.ozlabs.org; Mon, 27 Aug 2012 04:53:43 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:mail-followup-to:subject:date:message-id:user-agent :mime-version:content-type; bh=nSPOjWjC48zNUWQhTpok2TGFmG1Vt0HHoW06rjdW2k4=; b=DEGhXg8wQtbb1g60Mi2Wf14IvTVxe1+uoUVepM5xZhPa5HGH0O00ZuhgQ7yE95ue7Q xmBOQsJSLcLHs5HOmX5jtdbUpW8gfprdWV+P/IJtMVJ9nC+F0NMrhy8H4+C0ycEhUM7q 0ie/5CY7SO4lAL+l+yawMsToO5BDumlraQmodvMdXI5jFrSs9n6yfLiaT5U/g6c2Dl+y aqO/etxHRpsLGVc+iGCrs0NFcaw60fv/WltR+ejCx93SgdWxGRqzqBDN38ORMqLKhz5a 1DGdks1y3ujHLsWMYbZojFSj+gbFSv0YWZvQRy1x44ZMEG1XKrbU+2xCvUjmVETBJb4h NOug== Received: by 10.14.213.137 with SMTP id a9mr16617936eep.38.1346057610450; Mon, 27 Aug 2012 01:53:30 -0700 (PDT) Received: from localhost ([2.26.188.227]) by mx.google.com with ESMTPS id y1sm50451613eel.0.2012.08.27.01.53.28 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2012 01:53:29 -0700 (PDT) From: Richard Sandiford To: qemu-devel@nongnu.org Mail-Followup-To: qemu-devel@nongnu.org, rdsandiford@googlemail.com Date: Mon, 27 Aug 2012 09:53:29 +0100 Message-ID: <8762843ed2.fsf@talisman.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.83.45 Subject: [Qemu-devel] [PATCH] [MIPS] Fix order of CVT.PS.S operands X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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);