diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-31 16:02:14 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-31 16:02:14 +0000 |
commit | 54e17e0cdd36cb0a9a7cb235dc25e62d24b1c3fb (patch) | |
tree | 428050a6f90c7735dcb47b32c1f437e21ee161c6 /gcc/testsuite/g++.dg/other | |
parent | 24a1cda994ddec467d6df26856126a3068084881 (diff) |
This commit was manufactured by cvs2svn to create branch
'apple-local-200502-branch'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-local-200502-branch@103677 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/other')
-rw-r--r-- | gcc/testsuite/g++.dg/other/i386-1.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/i386-1.C b/gcc/testsuite/g++.dg/other/i386-1.C new file mode 100644 index 00000000000..48371978a98 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/i386-1.C @@ -0,0 +1,20 @@ +/* { dg-do run { target i?86-*-* } } */ +/* { dg-options "-march=pentium4" } */ + +#include <xmmintrin.h> +#include <stdio.h> + +int main(int argc, char** argv) { + float a = 1.0f; + float b = 2.0f; + float c = 3.0f; + float r; + + __m128 v = _mm_set_ps(a, b, c, 0); + + v = (__m128)_mm_srli_si128((__m128i)v, 4); + _mm_store_ss(&r, v); + if (r != 3.0f) + abort (); + exit (0); +} |