summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-21 15:32:51 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-21 15:32:51 +0000
commitea3bb9f478f704878852093e80c2f32ad13507a2 (patch)
tree53efce656c397848632f83829b61cda9b2e4f248 /gcc/testsuite
parente42ab82a3ab730b73f7b22f634195248aefaa7fd (diff)
downloadgcc-ea3bb9f478f704878852093e80c2f32ad13507a2.tar.gz
* config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
(vec_unpacku_float_lo_v4si): Ditto. testsuite/ChangeLog: * gcc.target/i386/vectorize8.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149862 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.target/i386/vectorize8.c16
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 525e6b22872..ed0b13aae35 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2009-07-21 Uros Bizjak <ubizjak@gmail.com>
+ * gcc.target/i386/vectorize8.c: New test.
+
+2009-07-21 Uros Bizjak <ubizjak@gmail.com>
+
PR target/40811
* lib/target-supports.exp (check_effective_target_vect_uintfloat_cvt):
Add i?86 and x86_64 targets.
diff --git a/gcc/testsuite/gcc.target/i386/vectorize8.c b/gcc/testsuite/gcc.target/i386/vectorize8.c
new file mode 100644
index 00000000000..ed1517b93ef
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/vectorize8.c
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-vectorize -msse2" } */
+
+unsigned int a[256];
+double b[256];
+
+void foo(void)
+{
+ int i;
+
+ for (i=0; i<256; ++i)
+ b[i] = a[i];
+}
+
+/* { dg-final { scan-assembler "cvtdq2pd" } } */
+