]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Wed, 12 Jun 2002 22:50:17 +0000 (22:50 +0000)
committerNo Author <no-author@gcc.gnu.org>
Wed, 12 Jun 2002 22:50:17 +0000 (22:50 +0000)
'gcc-3_1-branch'.

From-SVN: r54563

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

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);
+}