From nobody Tue Feb 10 20:28:22 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1697546368; cv=none; d=zohomail.com; s=zohoarc; b=EDh7QeR7agu7i4Y1ugWVh4uUBGcSbLkqZ+OyV0kqP5MYX3HRspZHyC2Jr83oW0tCn5KcL3Zxam5w4s1QYQFj7ZfWlvcAZakZ0zQEgyz9NzN8iyYoCrCJkD9gs/TtqGDFv+IWuXsok+VJdT2kVNLN+Wqw8n04wbxiy+3cpl0qgqQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697546368; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lJX9i0nIU+Mw/wIFVSG+iH4rzUP5e2e0zAqC7vjLugA=; b=PhMJidyH6JRBUHCXoU5EdUUap6dhHS24O+1iTMuNxk3HSjJxsGMlbEOZBSVMKMKgYlA4ZPmdlMJnuhPBrcjLJKHG81AXKZ+8bPstASMfNg9MFCAM+KEXQlRpv8oY6h7yO6LnrPgcnkovdfMX7Jhgsp7jwMAVMrP+Eww3WkW+oac= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697546368271992.0377570300881; Tue, 17 Oct 2023 05:39:28 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsjLj-0002xP-DJ; Tue, 17 Oct 2023 08:39:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsjLh-0002rE-Hf for qemu-devel@nongnu.org; Tue, 17 Oct 2023 08:39:01 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qsjLf-0007Ak-Sj for qemu-devel@nongnu.org; Tue, 17 Oct 2023 08:39:01 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40684f53d11so62815685e9.1 for ; Tue, 17 Oct 2023 05:38:59 -0700 (PDT) Received: from m1x-phil.lan ([176.172.118.33]) by smtp.gmail.com with ESMTPSA id i3-20020a5d4383000000b0032da022855fsm1593717wrq.111.2023.10.17.05.38.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 17 Oct 2023 05:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697546338; x=1698151138; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lJX9i0nIU+Mw/wIFVSG+iH4rzUP5e2e0zAqC7vjLugA=; b=fYBLYVWA71l31ocam9Zj3UnX6ykqmMNWskK1bQOpqp1TFX1EOCd50HRDcE90MD9ctY U0LX9oSAFjGQEttRVMZH5TEO+9KEvI/AS7WWNkEEoOQjsA7gT9ijliCUuCAnLjy2NZCD jksbLRB+MAi8cFn9YYfBoRHk0DN1qOsZ2HCLoyvHyes76KDGdUxk2pcBrAlfyac1S/G8 r3PR6yduanLD4frfAAItw2nQE4hmsdxqXVFoetChp+KVZxITMAiXVg7k6Bjs3WN9WvpU 6d0vgeWWG9C9Y3hN1z4CUUNccGD7sgOlNSTZgTu90gY1Rqv/ciIb2dJLtvtbzVVvJTi0 sURw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697546338; x=1698151138; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lJX9i0nIU+Mw/wIFVSG+iH4rzUP5e2e0zAqC7vjLugA=; b=lWCl3MHOiO8Ytd9cR0y6IwCRoqNXCsIqaQ8DgVrK7CYu689FQEE+1bYNac7GDxA8Ew 2ojPHKAFFJTKq6KJwZCVOeBd39UycCmWUa68ocn8JcLCeaWfFzIWDJYOV11Nk1Bfkb4X C/Rg/H3yqhF0G69B/K5i7FbBVNs4rZY0W9vRMBUujnKs8ni4PQOuIVqbGJ/7KzqWrKEE oLWzeKi8sgtGZ2ho3+NAb3AZoQAMgT5OGWwkgcT3qQwBDSXiimQWypJKUdmp+yC8sDFq SiRoGCtUl34ptl1cLLoUTG0Bocbct5L+RWNBCYjJEUp33VbwqAUAbtZObp+XqKhaW6hU yB5w== X-Gm-Message-State: AOJu0YySVRnnbNr9CoH4N6qE+rYs01hw8pbdksofnFCMi/Ra784XNk6P 28rzyrNg4N5lJZXtl9ngc15+tjce3cxOQdO6+1mQKg== X-Google-Smtp-Source: AGHT+IE6LfPyYoZxfFRmNlTm3Hl0IjW5HMM51KyNhDpXPo9nf3KOz5cS7p1doR0DKM4KZKhc9SzOCg== X-Received: by 2002:a5d:4b50:0:b0:32d:9fc9:d14c with SMTP id w16-20020a5d4b50000000b0032d9fc9d14cmr2035478wrs.47.1697546338173; Tue, 17 Oct 2023 05:38:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Richard Henderson Cc: Song Gao , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [RFC PATCH 1/2] target/loongarch: Use i128 for 128-bit load/store in VST[X]/XVST Date: Tue, 17 Oct 2023 14:38:48 +0200 Message-ID: <20231017123849.40834-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231017123849.40834-1-philmd@linaro.org> References: <20231017123849.40834-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1697546369998100001 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Song Gao --- target/loongarch/translate.c | 6 +++++ target/loongarch/insn_trans/trans_vec.c.inc | 30 +++++++-------------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/target/loongarch/translate.c b/target/loongarch/translate.c index 21f4db6fbd..c6edfc800f 100644 --- a/target/loongarch/translate.c +++ b/target/loongarch/translate.c @@ -61,6 +61,12 @@ static inline void set_vreg64(TCGv_i64 src, int regno, i= nt index) offsetof(CPULoongArchState, fpr[regno].vreg.D(index))); } =20 +static inline void get_vreg128(TCGv_i128 dest, int regno, int index) +{ + tcg_gen_ld_i128(dest, tcg_env, + offsetof(CPULoongArchState, fpr[regno].vreg.Q(index))); +} + static inline int plus_1(DisasContext *ctx, int x) { return x + 1; diff --git a/target/loongarch/insn_trans/trans_vec.c.inc b/target/loongarch= /insn_trans/trans_vec.c.inc index 98f856bb29..dd41f5e48e 100644 --- a/target/loongarch/insn_trans/trans_vec.c.inc +++ b/target/loongarch/insn_trans/trans_vec.c.inc @@ -5285,7 +5285,6 @@ static bool trans_vst(DisasContext *ctx, arg_vr_i *a) { TCGv addr; TCGv_i128 val; - TCGv_i64 ah, al; =20 if (!avail_LSX(ctx)) { return false; @@ -5297,14 +5296,10 @@ static bool trans_vst(DisasContext *ctx, arg_vr_i *= a) =20 addr =3D gpr_src(ctx, a->rj, EXT_NONE); val =3D tcg_temp_new_i128(); - ah =3D tcg_temp_new_i64(); - al =3D tcg_temp_new_i64(); =20 addr =3D make_address_i(ctx, addr, a->imm); =20 - get_vreg64(ah, a->vd, 1); - get_vreg64(al, a->vd, 0); - tcg_gen_concat_i64_i128(val, al, ah); + get_vreg128(val, a->vd, 0); tcg_gen_qemu_st_i128(val, addr, ctx->mem_idx, MO_128 | MO_TE); =20 return true; @@ -5342,7 +5337,6 @@ static bool trans_vldx(DisasContext *ctx, arg_vrr *a) static bool trans_vstx(DisasContext *ctx, arg_vrr *a) { TCGv addr, src1, src2; - TCGv_i64 ah, al; TCGv_i128 val; =20 if (!avail_LSX(ctx)) { @@ -5356,13 +5350,9 @@ static bool trans_vstx(DisasContext *ctx, arg_vrr *a) src1 =3D gpr_src(ctx, a->rj, EXT_NONE); src2 =3D gpr_src(ctx, a->rk, EXT_NONE); val =3D tcg_temp_new_i128(); - ah =3D tcg_temp_new_i64(); - al =3D tcg_temp_new_i64(); =20 addr =3D make_address_x(ctx, src1, src2); - get_vreg64(ah, a->vd, 1); - get_vreg64(al, a->vd, 0); - tcg_gen_concat_i64_i128(val, al, ah); + get_vreg128(val, a->vd, 0); tcg_gen_qemu_st_i128(val, addr, ctx->mem_idx, MO_128 | MO_TE); =20 return true; @@ -5484,18 +5474,16 @@ static void gen_xvld(DisasContext *ctx, int vreg, T= CGv addr) =20 static void gen_xvst(DisasContext * ctx, int vreg, TCGv addr) { - int i; + MemOp mop =3D MO_128 | MO_TE; TCGv temp =3D tcg_temp_new(); - TCGv dest =3D tcg_temp_new(); + TCGv_i128 dest =3D tcg_temp_new_i128(); =20 - get_vreg64(dest, vreg, 0); - tcg_gen_qemu_st_i64(dest, addr, ctx->mem_idx, MO_TEUQ); + get_vreg128(dest, vreg, 0); + tcg_gen_qemu_st_i128(dest, addr, ctx->mem_idx, mop); =20 - for (i =3D 1; i < 4; i++) { - tcg_gen_addi_tl(temp, addr, 8 * i); - get_vreg64(dest, vreg, i); - tcg_gen_qemu_st_i64(dest, temp, ctx->mem_idx, MO_TEUQ); - } + tcg_gen_addi_tl(temp, addr, 16); + get_vreg128(dest, vreg, 1); + tcg_gen_qemu_st_i128(dest, temp, ctx->mem_idx, mop); } =20 TRANS(xvld, LASX, gen_lasx_memory, gen_xvld) --=20 2.41.0 From nobody Tue Feb 10 20:28:22 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1697546375; cv=none; d=zohomail.com; s=zohoarc; b=KXnp1nMV+izXzFbfvYzZqRWUhXzQACrK543JcveOqvl1Z8aZpqPFxLuBQhPv6G2XN8kGY5Pk4pnXaDAIvhEU3HsgeNPxZYC9V3Cbq5rmb2thcYYAQItAQSenacv6FTc9yLH9LBe/C+HLfJhUz8OWh9LQgBiFxu88cXV33rdGmhw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697546375; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ieYLwocsfjjZTkdy/ghGoFyoMGNTUK0znPSRouPjdQc=; b=kAn6FnKNoqrpJpZfv58mgdo7wo/aBPXNQKpHAVmfog7CksmuNWE53K198p5Yp3/dAw220pwQM4jPhYSEjq3GI5K/E/OSL5K5qYQ4JdPYGBNgzIJ4gbaTbKUCWqcics764ipsTHP7GkGDeG7B1mU3ie6zN0EMHEWZFOfro1h//88= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 169754637547168.57104832527318; Tue, 17 Oct 2023 05:39:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsjLq-00036W-Do; Tue, 17 Oct 2023 08:39:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsjLn-00031u-E0 for qemu-devel@nongnu.org; Tue, 17 Oct 2023 08:39:07 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qsjLl-0007CQ-VW for qemu-devel@nongnu.org; Tue, 17 Oct 2023 08:39:07 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40684f53bfcso51026165e9.0 for ; Tue, 17 Oct 2023 05:39:05 -0700 (PDT) Received: from m1x-phil.lan ([176.172.118.33]) by smtp.gmail.com with ESMTPSA id j5-20020a05600c1c0500b003fe1c332810sm9900134wms.33.2023.10.17.05.39.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 17 Oct 2023 05:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697546344; x=1698151144; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ieYLwocsfjjZTkdy/ghGoFyoMGNTUK0znPSRouPjdQc=; b=K7sq63H/ZDjDbiH2jCMlwfqrVp6iiDwjdjLatghTaGVlq4j051VYJUdi3Tge/x8QuN tLYVLUXTO31VzXmB9VbOVMcD1s0UMGqDFtBus3erl7VCdGt5/M4AYJ8uNMUsffV04CXB VdwTJdjBOJLPwYeeD5CwatCOG3YcncFVhTRJ+CQdhJbN3t9MF4vbsVMqCoSqxFdbO4uJ lnz30oOGpzmliaEBNwdl3ZiHl+5Lf/lohGxz32aEqY3KzGJHLQHhs/q2kWG6x88YqySg flWgWF7PU9ZnTVNfJhoNgzoWuqqihpBnluNNg+Yz2o4zY13KG9YzKxN5p3aCHlr3lmnz nt2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697546344; x=1698151144; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ieYLwocsfjjZTkdy/ghGoFyoMGNTUK0znPSRouPjdQc=; b=pGyxfQroc5X2eu986jvhwPvhXIX3kBdv2G/KPaaI2OPimenEkViipoLEXOy7BQbZSo 18JxIE+GjYrOATN7eVtkF30ehjhRzIlMgkIURxF2RmWevWdlRFZjcBfwBsdeN5jZ+qSC tLuIUiJoqF0aYP2am8inko9CbJYlexopOPFptXM0jeszcdQreP6zcwEkxISB7PWID0ti lnBTfxZb6kS/E4Cij/DcvrixhUuLrhvs2++sBk0XmF+rphDgPOubu8VJPHwfsZZVgIpW R60NG3ssZH/NQPXt9riCPJeFSlrnv/yb+QT4ckw1tj4qJ3TVu3FeT99sn01z+CZgl52E 3LcA== X-Gm-Message-State: AOJu0YyCqtEXX+XEwVo8YiYyeCdR5Uc5H6/R12L914PfrjoTPK/X01QM XzFVEuQECcgPpWBBDD5BenDiep4CnkH5+Y2E7aM7eQ== X-Google-Smtp-Source: AGHT+IFAiT0BXbbeIsTOm5wAOzkSS6zgDOoBUguzW10lW2ZjFPNxl/UMZWI9g6BuSKCFP1O+egvaiQ== X-Received: by 2002:a05:600c:3b05:b0:401:b6f6:d8fd with SMTP id m5-20020a05600c3b0500b00401b6f6d8fdmr1627616wms.6.1697546344409; Tue, 17 Oct 2023 05:39:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Richard Henderson Cc: Song Gao , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [RFC PATCH 2/2] target/loongarch: Use i128 for 128-bit load/store in XVLD Date: Tue, 17 Oct 2023 14:38:49 +0200 Message-ID: <20231017123849.40834-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231017123849.40834-1-philmd@linaro.org> References: <20231017123849.40834-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1697546376034100001 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Song Gao --- target/loongarch/translate.c | 6 ++++++ target/loongarch/insn_trans/trans_vec.c.inc | 16 +++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/target/loongarch/translate.c b/target/loongarch/translate.c index c6edfc800f..89e35770b7 100644 --- a/target/loongarch/translate.c +++ b/target/loongarch/translate.c @@ -67,6 +67,12 @@ static inline void get_vreg128(TCGv_i128 dest, int regno= , int index) offsetof(CPULoongArchState, fpr[regno].vreg.Q(index))); } =20 +static inline void set_vreg128(TCGv_i128 src, int regno, int index) +{ + tcg_gen_st_i128(src, tcg_env, + offsetof(CPULoongArchState, fpr[regno].vreg.Q(index))); +} + static inline int plus_1(DisasContext *ctx, int x) { return x + 1; diff --git a/target/loongarch/insn_trans/trans_vec.c.inc b/target/loongarch= /insn_trans/trans_vec.c.inc index dd41f5e48e..c8b7bfa67f 100644 --- a/target/loongarch/insn_trans/trans_vec.c.inc +++ b/target/loongarch/insn_trans/trans_vec.c.inc @@ -5458,18 +5458,16 @@ static bool gen_lasx_memory(DisasContext *ctx, arg_= vr_i *a, =20 static void gen_xvld(DisasContext *ctx, int vreg, TCGv addr) { - int i; + MemOp mop =3D MO_128 | MO_TE; TCGv temp =3D tcg_temp_new(); - TCGv dest =3D tcg_temp_new(); + TCGv_i128 dest =3D tcg_temp_new_i128(); =20 - tcg_gen_qemu_ld_i64(dest, addr, ctx->mem_idx, MO_TEUQ); - set_vreg64(dest, vreg, 0); + tcg_gen_qemu_ld_i128(dest, addr, ctx->mem_idx, mop); + set_vreg128(dest, vreg, 0); =20 - for (i =3D 1; i < 4; i++) { - tcg_gen_addi_tl(temp, addr, 8 * i); - tcg_gen_qemu_ld_i64(dest, temp, ctx->mem_idx, MO_TEUQ); - set_vreg64(dest, vreg, i); - } + tcg_gen_addi_tl(temp, addr, 16); + tcg_gen_qemu_ld_i128(dest, temp, ctx->mem_idx, mop); + set_vreg128(dest, vreg, 1); } =20 static void gen_xvst(DisasContext * ctx, int vreg, TCGv addr) --=20 2.41.0