[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
This commit is contained in:
parent
b0a3329db0
commit
2d44c551c2
|
@ -1,3 +1,7 @@
|
|||
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>
|
||||
|
||||
PR driver/78863
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
/* { dg-require-effective-target arm_thumb2_ok } */
|
||||
/* { dg-options "-O" } */
|
||||
|
||||
unsigned short foo (unsigned short x)
|
||||
unsigned short foo (unsigned short x, unsigned short c)
|
||||
{
|
||||
unsigned char i = 0;
|
||||
for (i = 0; i < 8; i++)
|
||||
{
|
||||
x >>= 1;
|
||||
x &= 0x7fff;
|
||||
x &= c;
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue