* combine.c (simplify_comparison): Use an unsigned shift to adjust
the constant.
From-SVN: r29620
+1999-09-23 Nick Clifton <nickc@cygnus.com>
+
+ * execute/990923-1.c: New test.
+
1999-09-21 Nick Clifton <nickc@cygnus.com>
* special/special.exp: Add FR30 to list of targets for which -fpic
--- /dev/null
+#define mask 0xffff0000L
+#define value 0xabcd0000L
+
+long
+foo (long x)
+{
+ if ((x & mask) == value)
+ return x & 0xffffL;
+ return 1;
+}
+
+int
+main (void)
+{
+ if (foo (value) != 0 || foo (0) != 1)
+ abort ();
+
+ exit (0);
+}