From af0c51ac87ab2a87caa03fa108f0d164987a2764 Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Thu, 28 Mar 2013 11:14:20 -0700 Subject: [GCC 4.8] Initial check-in of GCC 4.8.0 Change-Id: I0719d8a6d0f69b367a6ab6f10eb75622dbf12771 --- .../gcc/testsuite/gcc.target/i386/sse2-movupd-1.c | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 gcc-4.8/gcc/testsuite/gcc.target/i386/sse2-movupd-1.c (limited to 'gcc-4.8/gcc/testsuite/gcc.target/i386/sse2-movupd-1.c') diff --git a/gcc-4.8/gcc/testsuite/gcc.target/i386/sse2-movupd-1.c b/gcc-4.8/gcc/testsuite/gcc.target/i386/sse2-movupd-1.c new file mode 100644 index 000000000..6533b4c4b --- /dev/null +++ b/gcc-4.8/gcc/testsuite/gcc.target/i386/sse2-movupd-1.c @@ -0,0 +1,34 @@ +/* { dg-do run } */ +/* { dg-options "-O2 -msse2" } */ +/* { dg-require-effective-target sse2 } */ + +#ifndef CHECK_H +#define CHECK_H "sse2-check.h" +#endif + +#ifndef TEST +#define TEST sse2_test +#endif + +#include CHECK_H + +#include + +static __m128d +__attribute__((noinline, unused)) +test (double *e) +{ + return _mm_loadu_pd (e); +} + +static void +TEST (void) +{ + union128d u; + double e[2] = {2134.3343,1234.635654}; + + u.x = test (e); + + if (check_union128d (u, e)) + abort (); +} -- cgit v1.2.3