Commit 26344433 by Steve Ellcey Committed by Steve Ellcey

* gcc.target/mips/branch-1.c: Pass argument to bar().

From-SVN: r223010
parent 4e2c881f
2015-05-11 Steve Ellcey <sellcey@mips.com>
* gcc.target/mips/branch-1.c: Pass argument to bar().
2015-05-11 Alexander Monakov <amonakov@ispras.ru>
PR target/65753
......
......@@ -4,11 +4,11 @@
on zero. */
/* { dg-options "forbid_cpu=octeon.*" } */
void bar (void);
NOMIPS16 void f1 (int x) { if (x & 4) bar (); }
NOMIPS16 void f2 (int x) { if ((x >> 2) & 1) bar (); }
NOMIPS16 void f3 (unsigned int x) { if (x & 0x10) bar (); }
NOMIPS16 void f4 (unsigned int x) { if ((x >> 4) & 1) bar (); }
void bar (int);
NOMIPS16 void f1 (int x) { if (x & 4) bar (1); }
NOMIPS16 void f2 (int x) { if ((x >> 2) & 1) bar (2); }
NOMIPS16 void f3 (unsigned int x) { if (x & 0x10) bar (3); }
NOMIPS16 void f4 (unsigned int x) { if ((x >> 4) & 1) bar (4); }
/* { dg-final { scan-assembler "\tandi\t.*\tandi\t.*\tandi\t.*\tandi\t" } } */
/* { dg-final { scan-assembler-not "\tsrl\t" } } */
/* { dg-final { scan-assembler-not "\tsra\t" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment