* gcc.c-torture/execute/20020611-1.c: New test.
authorHans-Peter Nilsson <hp@axis.com>
Wed, 12 Jun 2002 01:59:00 +0000 (01:59 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Wed, 12 Jun 2002 01:59:00 +0000 (01:59 +0000)
From-SVN: r54541

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20020611-1.c [new file with mode: 0644]

index 5d9b3fa2c2ca497edeada278059fbc9fcd31e402..f21b853a3ffae4925ca5a8da5f1e5a1f4d362580 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-12  Hans-Peter Nilsson  <hp@axis.com>
+
+       * gcc.c-torture/execute/20020611-1.c: New test.
+
 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
 
        * g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
diff --git a/gcc/testsuite/gcc.c-torture/execute/20020611-1.c b/gcc/testsuite/gcc.c-torture/execute/20020611-1.c
new file mode 100644 (file)
index 0000000..87fb717
--- /dev/null
@@ -0,0 +1,32 @@
+/* PR target/6997.  Missing (set_attr "cc" "none") in sleu pattern in
+   cris.md.  Testcase from hp@axis.com.  */
+
+int p;
+int k;
+unsigned int n;
+
+void x ()
+{
+  unsigned int h;
+
+  h = n <= 30;
+  if (h)
+    p = 1;
+  else
+    p = 0;
+
+  if (h)
+    k = 1;
+  else
+    k = 0;
+}
+
+unsigned int n = 30;
+
+main ()
+{
+  x ();
+  if (p != 1 || k != 1)
+    abort ();
+  exit (0);
+}