Patchwork [testsuite] Added test for PR 55987

login
register
mail settings
Submitter Tilman Sauerbeck
Date Feb. 14, 2013, 6:02 p.m.
Message ID <20130214180211.GA31072@code-monkey.de>
Download mbox | patch
Permalink /patch/220476/
State New
Headers show

Comments

Tilman Sauerbeck - Feb. 14, 2013, 6:02 p.m.
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.
Janis Johnson - Feb. 14, 2013, 10:39 p.m.
On 02/14/2013 10:02 AM, Tilman Sauerbeck wrote:
> 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

I would prefer to add the test after the bug has been fixed.
Tests for unfixed bugs clutter up the test suite.

Janis

> 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);
> +}
> 
>

Patch

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);
+}