summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr47890.c9
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr47968.c11
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr47975.c10
3 files changed, 30 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr47890.c b/gcc/testsuite/gcc.dg/torture/pr47890.c
new file mode 100644
index 00000000000..83cb5e6d936
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr47890.c
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+
+void f(char *s)
+{
+ signed short i;
+
+ for (i = 0; i < 19; i = i + 1)
+ s[i] = i;
+}
diff --git a/gcc/testsuite/gcc.dg/torture/pr47968.c b/gcc/testsuite/gcc.dg/torture/pr47968.c
new file mode 100644
index 00000000000..4f33cf1f349
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr47968.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-w -Wno-psabi" } */
+
+typedef __attribute__ ((vector_size (16))) float float4;
+typedef __attribute__ ((vector_size (16))) double double2;
+
+float foo (double2 d2)
+{
+ float4 f4 = (float4) d2;
+ return *(float *) &f4;
+}
diff --git a/gcc/testsuite/gcc.dg/torture/pr47975.c b/gcc/testsuite/gcc.dg/torture/pr47975.c
new file mode 100644
index 00000000000..e2a72af4915
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr47975.c
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */
+
+int __attribute__ ((vector_size (32))) x;
+
+void
+foo (void)
+{
+ x <<= x;
+}