From: Uros Bizjak Date: Tue, 27 Dec 2016 11:12:32 +0000 (+0100) Subject: * gcc.target/i386/pr78904-2.c: Fix testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5735741b128fecd49f45170b8a85e12ee7771371;p=gcc.git * gcc.target/i386/pr78904-2.c: Fix testcase. From-SVN: r243935 --- diff --git a/gcc/testsuite/gcc.target/i386/pr78904-2.c b/gcc/testsuite/gcc.target/i386/pr78904-2.c index 03792b0242f..c7b161d6c80 100644 --- a/gcc/testsuite/gcc.target/i386/pr78904-2.c +++ b/gcc/testsuite/gcc.target/i386/pr78904-2.c @@ -11,34 +11,34 @@ struct S1 extern struct S1 t; -struct S1 test_and (struct S1 a, struct S1 b) +struct S1 test_and (struct S1 a) { - a.val &= b.val; + a.val &= t.val; return a; } /* { dg-final { scan-assembler "\[ \t\]andb\[^\n\r]*, %.h" } } */ -struct S1 test_or (struct S1 a, struct S1 b) +struct S1 test_or (struct S1 a) { - a.val |= b.val; + a.val |= t.val; return a; } /* { dg-final { scan-assembler "\[ \t\]orb\[^\n\r]*, %.h" } } */ -struct S1 test_xor (struct S1 a, struct S1 b) +struct S1 test_xor (struct S1 a) { - a.val ^= b.val; + a.val ^= t.val; return a; } /* { dg-final { scan-assembler "\[ \t\]xorb\[^\n\r]*, %.h" } } */ -struct S1 test_add (struct S1 a, struct S1 b) +struct S1 test_add (struct S1 a) { a.val += t.val;