OSDN Git Service

* gcc.dg/20030909-1.c: New test.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Sep 2003 04:45:11 +0000 (04:45 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Sep 2003 04:45:11 +0000 (04:45 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71293 138bc75d-0d04-0410-961f-82ee72b054a4

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

index db6cc0d..f1d670b 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; }