[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 09/19] test-i386: modernize vector code v4sf
From: |
Pranith Kumar |
Subject: |
[Qemu-devel] [PATCH 09/19] test-i386: modernize vector code v4sf |
Date: |
Thu, 1 Dec 2016 00:14:23 -0500 |
From: Marc-André Lureau <address@hidden>
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 <address@hidden>
Signed-off-by: Pranith Kumar <address@hidden>
---
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
- [Qemu-devel] [PATCH 01/19] linux-user: fix settime old value location, (continued)
- [Qemu-devel] [PATCH 01/19] linux-user: fix settime old value location, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 04/19] tests/tcg: comment unused code, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 03/19] check-help: add some hint to run a single test, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 07/19] linux-test: fix set/getitimer returned timer check, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 06/19] linux-test: fix build, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 08/19] Fix test-i386-fprem compilation, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 09/19] test-i386: modernize vector code v4sf,
Pranith Kumar <=
- [Qemu-devel] [PATCH 10/19] tests/tcg: Move arm tests to arch specific folder, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 12/19] tests/tcg: Add tests-tcg hook in Makefile, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 14/19] tests/tcg: Move i386 tests to arch specific folder, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 11/19] tests/tcg: Move mips test to arch specific folder, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 13/19] tests/tcg/i386: Fix hello-i386 test, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 16/19] tests/tcg: Fix compilation of linux-test.c, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 15/19] tests/tcg/i386: Fix test-i386 compilation, Pranith Kumar, 2016/12/01
- [Qemu-devel] [PATCH 17/19] tests/tcg: Move independent tests to misc dir, Pranith Kumar, 2016/12/01