Commit 2d44c551 by Andre Vieira Committed by Andre Vieira

[ARM] Updating testcase unsigned-extend-2.c

gcc/testsuite/ChangeLog:
2016-12-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>

	* gcc.target/arm/unsigned-extend-2.c: Update testcase.

From-SVN: r243858
parent b0a3329d
2016-12-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
* gcc.target/arm/unsigned-extend-2.c: Update testcase.
2016-12-21 Martin Liska <mliska@suse.cz> 2016-12-21 Martin Liska <mliska@suse.cz>
PR driver/78863 PR driver/78863
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
/* { dg-require-effective-target arm_thumb2_ok } */ /* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-options "-O" } */ /* { dg-options "-O" } */
unsigned short foo (unsigned short x) unsigned short foo (unsigned short x, unsigned short c)
{ {
unsigned char i = 0; unsigned char i = 0;
for (i = 0; i < 8; i++) for (i = 0; i < 8; i++)
{ {
x >>= 1; x >>= 1;
x &= 0x7fff; x &= c;
} }
return x; return x;
} }
......
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