diff mbox

[09/19] test-i386: modernize vector code v4sf

Message ID 20161201051433.17168-10-bobby.prani@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Pranith Kumar Dec. 1, 2016, 5:14 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

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 <marcandre.lureau@redhat.com>
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
---
 tests/tcg/test-i386.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox

Patch

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] = {