Received: from eggs.gnu.org ([2001:4830:134:3::10]:43709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCJhj-0002sH-Hh for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCJhi-0007Ne-DT for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:43 -0500 Received: from mail-yw0-x241.google.com ([2607:f8b0:4002:c05::241]:33207) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCJhi-0007MN-71 for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:42 -0500 Received: by mail-yw0-x241.google.com with SMTP id s68so16780270ywg.0 for ; Wed, 30 Nov 2016 21:14:42 -0800 (PST) From: Pranith Kumar Date: Thu, 1 Dec 2016 00:14:23 -0500 Message-Id: <20161201051433.17168-10-bobby.prani@gmail.com> In-Reply-To: <20161201051433.17168-1-bobby.prani@gmail.com> References: <20161201051433.17168-1-bobby.prani@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 09/19] test-i386: modernize vector code v4sf List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alex.bennee@linaro.org Cc: qemu-devel@nongnu.org, rth@twiddle.net, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-André Lureau Fixes the following compiler warning: tests/tcg/test-i386.c:2110:1: warning: specifying vector types with __attribute__ ((mode)) is deprecated [-Wattributes] typedef int __m64 __attribute__ ((__mode__ (__V2SI__))); ^~~~~~~ Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar --- tests/tcg/test-i386.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/tcg/test-i386.c b/tests/tcg/test-i386.c index 0f7b943..b0f8975 100644 --- a/tests/tcg/test-i386.c +++ b/tests/tcg/test-i386.c @@ -2107,15 +2107,14 @@ static void test_enter(void) #ifdef TEST_SSE -typedef int __m64 __attribute__ ((__mode__ (__V2SI__))); -typedef float __m128 __attribute__ ((__mode__(__V4SF__))); +typedef float v4sf __attribute__ ((vector_size(4 * sizeof(float)))); typedef union { double d[2]; float s[4]; uint32_t l[4]; uint64_t q[2]; - __m128 dq; + v4sf dq; } XMMReg; static uint64_t __attribute__((aligned(16))) test_values[4][2] = { -- 2.10.2