This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,testsuite] Added test for PR 55987
- From: Tilman Sauerbeck <tilman at code-monkey dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Feb 2013 19:02:11 +0100
- Subject: [PATCH,testsuite] Added test for PR 55987
Hi,
here's a patch that adds a testcase for PR 55987.
Is xfail the right thing to use here? I went with that since I guess the
PR won't be fixed anytime soon ;)
I haven't assigned copyright to the FSF -- is this patch small enough to
go in without it?
Thanks,
Tilman
2013-02-14 Tilman Sauerbeck <tilman@code-monkey.de>
PR target/55987
* gcc.target/arm/pr55987.c: New.
diff --git a/gcc/testsuite/gcc.target/arm/pr55987.c b/gcc/testsuite/gcc.target/arm/pr55987.c
new file mode 100644
index 0000000..7dd9de0
--- /dev/null
+++ b/gcc/testsuite/gcc.target/arm/pr55987.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+/* { dg-final { scan-assembler-times ".word" 1 { xfail *-*-* } } } */
+/* { dg-final { scan-assembler "bic" { xfail *-*-* } } } */
+
+unsigned f(unsigned x, unsigned y)
+{
+ unsigned c = 0x7f7f7f7f;
+
+ return (x & c) ^ (y & ~c);
+}