Received: from eggs.gnu.org ([2001:4830:134:3::10]:55040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpBAK-0006MC-N1 for qemu-devel@nongnu.org; Wed, 28 Sep 2016 05:28:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpBAE-0008Sf-OO for qemu-devel@nongnu.org; Wed, 28 Sep 2016 05:28:35 -0400 References: <1475040687-27523-1-git-send-email-nikunj@linux.vnet.ibm.com> From: Thomas Huth Message-ID: <8d4dd96c-de93-2a60-6f1a-bad0117adf2a@redhat.com> Date: Wed, 28 Sep 2016 11:28:26 +0200 MIME-Version: 1.0 In-Reply-To: <1475040687-27523-1-git-send-email-nikunj@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 0/9] POWER9 TCG enablements - part4 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikunj A Dadhania , qemu-ppc@nongnu.org, david@gibson.dropbear.id.au, rth@twiddle.net Cc: qemu-devel@nongnu.org On 28.09.2016 07:31, Nikunj A Dadhania wrote: > This series contains 7 new instructions for POWER9 ISA3.0 > Use newer qemu load/store tcg helpers and optimize stxvw4x and lxvw4x. > > GCC was adding epilogue for every VSX instructions causing change in > behaviour. For testing the load vector instructions used mfvsrld/mfvsrd > for loading vsr to register. And for testing store vector, used mtvsrdd > instructions. This helped in getting rid of the epilogue added by gcc. Tried > adding the test cases to kvm-unit-tests, but executing vsx instructions > results in cpu exception. Will debug that later. I will send the test code > and steps to execute as reply to this email. Did you enable the VEC bit in the MSR before trying to run your instruction in a kvm-unit-test? If not, that might be the cause. Alternatively, there is also a tests/tcg/ folder in QEMU ... you could add a tests/tcg/ppc64 subfolder there. Thomas