* gcc.dg/20030909-1.c: New test.
authorIan Lance Taylor <ian@wasabisystems.com>
Thu, 11 Sep 2003 04:45:11 +0000 (04:45 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 11 Sep 2003 04:45:11 +0000 (04:45 +0000)
From-SVN: r71293

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20030909-1.c [new file with mode: 0644]

index db6cc0d371de27e43abbe8e5b54ae00f1c29fcb4..f1d670b0b2b35406ec9fd1f5fc5bc0092a2092ca 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
+
+       * gcc.dg/20030909-1.c: New test.
+
 2003-09-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.dg/ultrasp10.c: New test.
diff --git a/gcc/testsuite/gcc.dg/20030909-1.c b/gcc/testsuite/gcc.dg/20030909-1.c
new file mode 100644 (file)
index 0000000..2a13270
--- /dev/null
@@ -0,0 +1,5 @@
+/* Verify that ands are combined.  */
+/* { dg-do compile { target arm*-*-* strongarm*-*-* xscale*-*-* } } */
+/* { dg-options "-O" } */
+/* { dg-final { scan-assembler-not "#255.*#255" } } */
+int f(int a, int b) { return ((a & 0xff) + (b & 0xff)) & 0xff; }