2008-12-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2008 22:00:46 +0000 (22:00 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2008 22:00:46 +0000 (22:00 +0000)
        PR middle-end/38565
        * testsuite/g++.dg/torture/pr38565.C: New test.

git-svn-id: svn://gcc.gnu.org/svn/gcc/trunk@142821 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr38565.C [new file with mode: 0644]

index 0ac822c..80b117b 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR middle-end/38565
+       * testsuite/g++.dg/torture/pr38565.C: New test.
+
 2008-12-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/38427
diff --git a/gcc/testsuite/g++.dg/torture/pr38565.C b/gcc/testsuite/g++.dg/torture/pr38565.C
new file mode 100644 (file)
index 0000000..3674f55
--- /dev/null
@@ -0,0 +1,9 @@
+// { dg-do compile }
+#define vector __attribute__((vector_size(16) ))
+vector unsigned int f(int a)
+{
+  vector unsigned int mask = a ? (vector unsigned int){ 0x80000000, 0x80000000,
+0x80000000, 0x80000000 } : (vector unsigned int){0};
+  return mask;
+}
+