summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20041210-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20041210-1.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20041210-1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20041210-1.c b/gcc/testsuite/gcc.c-torture/execute/20041210-1.c
new file mode 100644
index 000000000..ef266a0a2
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20041210-1.c
@@ -0,0 +1,14 @@
+/* The FR-V port used to fail this test because the andcc patterns
+ wrongly claimed to set the C and V flags. */
+#include <limits.h>
+
+int x[4] = { INT_MIN / 2, INT_MAX, 2, 4 };
+
+int
+main ()
+{
+ if (x[0] < x[1])
+ if ((x[2] & x[3]) < 0)
+ abort ();
+ exit (0);
+}