summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20001101-1.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-09 21:34:32 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-09 21:34:32 +0000
commitb09c4d7fb4ad74dd69c3bcbdb34cb94cec3991d1 (patch)
treee53b44bfb8f28d7d86ab9b90e9b93538b696c016 /gcc/testsuite/gcc.dg/20001101-1.c
parent67494a80d9555500413b4b348545a64dbace1949 (diff)
downloadgcc-b09c4d7fb4ad74dd69c3bcbdb34cb94cec3991d1.tar.gz
* gcc.c-torture/compile/20010226-1.c: New test.
* gcc.c-torture/compile/20010227-1.c: New test. * gcc.c-torture/compile/20010426-1.c: New test. * gcc.c-torture/compile/20010510-1.c: New test. * gcc.c-torture/compile/20010605-3.c: New test. * gcc.c-torture/compile/20010824-1.c: New test. * gcc.c-torture/execute/20010409-1.c: New test. * gcc.dg/noncompile/20000901-1.c: New test. * gcc.dg/20001023-1.c: New test. * gcc.dg/20001101-1.c: New test. * gcc.dg/20001102-1.c: New test. * gcc.dg/20010207-1.c: New test. * gcc.dg/20010405-1.c: New test. * gcc.dg/20010822-1.c: New test. * gcc.dg/20011107-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48693 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20001101-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20001101-1.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20001101-1.c b/gcc/testsuite/gcc.dg/20001101-1.c
new file mode 100644
index 00000000000..b5231f2ce4e
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20001101-1.c
@@ -0,0 +1,38 @@
+/* { dg-do run { target sparc*-*-* } } */
+/* { dg-options "-O2 -mvis" } */
+
+int foo(double a, int b, int c, double *d, int h)
+{
+ int f, g;
+ double e;
+
+l:
+ f = (int) a;
+ a -= (double) f;
+ if (b == 1)
+ {
+ g = c;
+ f += g;
+ c -= g;
+ }
+ if (b == 2)
+ {
+ f++;
+ h = c;
+ }
+ if (!h)
+ {
+ for (g = 0; g <= 10; g++)
+ for (h = 0; h <= 10; h++)
+ e += d [10 + g - h];
+ goto l;
+ }
+ return f & 7;
+}
+
+int main()
+{
+ if (foo(0.1, 1, 3, 0, 1) != 3)
+ abort ();
+ exit (0);
+}